|virtual Bool||SetSurfaceSlot (SInt32 slot)=0|
|Set the surface slot used for simulation. More...|
|virtual SInt32||GetSurfaceSlot () const =0|
|Get the surface slot used for simulation. More...|
The ICollidable graph node interface.
Collidables are used in the framework's physics simulator to generate collisions between individual Graph::IBody nodes. There exist a number of derived interfaces that represent colliders of different shapes, such as planes, spheres or triangle meshes.
To attach a collider to a specific body, it must be defined within the sub graph of that body, not necessarily as a direct child. It is possible to apply a relative transform between the actual body and any of its colliders, to build a more complex collision object made up from a number of simple colliders.
The actual physical properties of an encountered collision with another collidable (such as bounciness or friction) are determined from a Graph::IContact node defining these properties for a Graph::ISurface pair, with the Graph::ISurface currently active at at the given slot (see SetSurfaceSlot()) and the collision partner's surface.
Member Function Documentation
Set the surface slot used for simulation.
slot The surface slot.
- true if successful.
Get the surface slot used for simulation.
- The surface slot.
The documentation for this interface was generated from the following file: