|virtual INode *||GetNodeInterface ()=0|
|Get the mutable Graph::INode interface. More...|
|virtual const INode *||GetNodeInterface () const =0|
|Get the constant Graph::INode interface. More...|
|virtual Physics::ISurface *||GetPhysicsSurfaceObject () const =0|
|Get the surface's internal physics simulator object. More...|
|Public Member Functions inherited from Murl::Graph::IStateSlot|
|virtual Bool||SetSlot (SInt32 slot)=0|
|Set the slot index to use. More...|
|virtual SInt32||GetSlot () const =0|
|Get the slot index to use. More...|
The ISurface graph node interface.
Surface nodes (not to be confused with Murl::IVideoSurface objects, which are used to represent graphical (bitmap) data) are used to define a physical property for nodes implementing the Graph::ICollidable interface.
A surface does not store any physical properties itself, because the actual physical behavior of a collision (such as bounciness or friction) greatly depends on the surface combination of the collision partners. For this reason, every possible (or at least every desired) combination of colliding surfaces must be explicitly defined via individual Graph::IContact nodes, which store the actual collision properties for a given surface pair.
Use the Graph::IStateSlot base interface to set or get the surface slot index this surface is temporarily attached to if any children are present.
Member Function Documentation
Get the surface's internal physics simulator object.
- A pointer to the mutable physics simulator object.
The documentation for this interface was generated from the following file: