SimulationStepListenerInterface Class Reference
#include <SimulationStepListenerInterface.h>
Inherited by CursorSpringConnector, and PhysicsSoundManager.
Public Member Functions | |
| virtual | ~SimulationStepListenerInterface () |
Protected Member Functions | |
| virtual void | step (float dt, unsigned simulationTime)=0 |
Friends | |
| class | Physics |
Detailed Description
Interface for SimulationStepListener in Physics Module. This interface can be used to implement a class which will always be notified when the Physics Module initiates a simulation step. Thestep callback method is always called from the Physics Thread in the step method before the real simulation step occurs. This allows to update data which is needed for the next simulation step. NOTE: The listener can be registered out of the System Thread or out of the Physics Thread. An opportunity would be to register the listener in the constructor of the object. When doing so take care that the listener could be called before the object is added to the simulation. Constructor & Destructor Documentation
| virtual SimulationStepListenerInterface::~SimulationStepListenerInterface | ( | ) | [inline, virtual] |
Empty destructor.
Member Function Documentation
| virtual void SimulationStepListenerInterface::step | ( | float | dt, | |
| unsigned | simulationTime | |||
| ) | [protected, pure virtual] |
Callback function when Physics::step is called. This method is called from the Physics Thread when a simulation step will be initiated. The passed argument defines the timestep which will be simulated. The real simulation step takes place after this method call.
- Parameters:
-
dt timestep of the next simulation step simulationTime time of the simulation
Implemented in CursorSpringConnector, and PhysicsSoundManager.
Friends And Related Function Documentation
friend class Physics [friend] |
The documentation for this class was generated from the following file:
- src/inVRs/Modules/3DPhysics/SimulationStepListenerInterface.h
Generated on Wed Oct 20 16:12:00 2010 for inVRs by
1.5.8