Interface PhysicsTickListener
- All Known Implementing Classes:
BetterCharacterControl, BulletAppState, DacLinks, DynamicAnimControl, MultiBodyAppState, SoftPhysicsAppState
public interface PhysicsTickListener
Periodic callback interface from the physics thread.
-
Method Summary
Modifier and TypeMethodDescriptionvoidphysicsTick(PhysicsSpace space, float timeStep) Callback invoked just after the physics has been stepped.voidprePhysicsTick(PhysicsSpace space, float timeStep) Callback invoked just before the physics is stepped.
-
Method Details
-
prePhysicsTick
Callback invoked just before the physics is stepped. A good time to apply impulses and reposition kinematic objects.- Parameters:
space- the space that's about to be stepped (not null)timeStep- the duration of the simulation step (in seconds, ≥0)
-
physicsTick
Callback invoked just after the physics has been stepped. A good time to re-activate deactivated objects.- Parameters:
space- the space that was just stepped (not null)timeStep- the duration of the simulation step (in seconds, ≥0)
-