S2ENGINE HD
1.4.6
Official manual about S2Engine HD editor and programming
|
Base Class: StaticGeom
MeshObject is the most typical StaticGeom object. It is graphically represented by a single mesh, and it is static, i.e. doesn't move or using scripts. It can be associated with a physical static body that lets dynamic bodies to collide with it. To build the meshobject as static physical body you have to set following params:
coltype:
(enum) used to set the type of collision shape. Current available shapes are:sphere
cylinder
box
mesh
character
used only by character object.colmesh
(model filename) Used only when coltype is mesh. This is the filename of the proxy mesh used for collision.dims
(vector3) used to define the extension of the collision shape.offset
used to define the position of the collision shape respect the origin of the object.Additional shapes can be added, just like in Rigid Body or Vehicle objects.
For more informations about Physics objects see Physics.
Mesh | (model filename) filename of the mesh associated with the object. |
Collide | (bool) if true the object becomes a physics static body, i.e. a static object which rigid bodies, vehicles and characters collide with. Otherwise not. |
visible | (bool) if true the object is visible, otherwise not. |
lod1 | (model filename) filename of the model used ad first level of detail. Can be empty. |
lod2 | (model filename) filename of the model used ad second level of detail. Can be empty only if lod1 is empty. |
lod3 | (model filename) filename of the model used ad third level of detail. Can be empty only if lod2 is empty. |
shadowProxy | (model filename) unused for now. |
Materials | (string) list of materials associated with the object. Reserved. |
AIRadius | (float) radius that the object has if it is an AIObstacle. |
AIHeight | (float) height that the object has if it is an AIObstacle. |
isAIObstacle | (bool) if true the object is used as obstacle by the AI navigation system. |
isAIOccluder | (bool) if true the object is used as an occluder by the AI vision system. |
none
none