S2ENGINE HD  1.4.6
Official manual about S2Engine HD editor and programming
MeshObject

Base Class: StaticGeom

MeshObject.jpg

Overview

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:
    1. sphere
    2. cylinder
    3. box
    4. 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.

See also
PrefabsInspector, ClassInspector.

For more informations about Physics objects see Physics.

Parameters
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.

Receiving Messages

none

Sending Messages

none

See also
Messages