Om
1.0.0
A universal framework for multimedia simulation
|
The base class for objects that use a physics context to do simulation. More...
#include <omPhysicsContextObject.h>
Public Member Functions | |
virtual | ~PhysicsContextObject () |
Destory this physics context object. More... | |
PhysicsContext * | getContext () const |
Return a pointer to the physics context this context object is using to do simulation. More... | |
virtual Bool | setContext (PhysicsContext *newContext) |
Set a pointer to the physics context this context object should use to do simulation. More... | |
Bool | clearContext () |
Clear the previous context from this object. More... | |
Protected Member Functions | |
PhysicsContextObject () | |
Create a new physics context object that doesn't have an associated physics context. More... | |
PhysicsContextObject (PhysicsContext *newContext) | |
Create a new physics context object that uses the specified context for simulation. More... | |
Protected Attributes | |
PhysicsContext * | context |
A pointer to the physics context this object is using. More... | |
The base class for objects that use a physics context to do simulation.
|
virtual |
Destory this physics context object.
|
inlineprotected |
Create a new physics context object that doesn't have an associated physics context.
|
inlineprotected |
Create a new physics context object that uses the specified context for simulation.
|
inline |
Return a pointer to the physics context this context object is using to do simulation.
|
virtual |
Set a pointer to the physics context this context object should use to do simulation.
The context object subclass should override this method to perform any initialization and configuration for the new context.
Reimplemented in om::physics::objects::RigidObject, om::physics::objects::PhysicsScene, om::physics::forces::Spring, om::physics::constraints::SphericalJoint, om::physics::objects::CharacterController, om::physics::forces::Thruster, and om::physics::forces::ForceField.
|
inline |
Clear the previous context from this object.
|
protected |
A pointer to the physics context this object is using.