Package com.jme3.bullet
Interface PhysicsTickListener
public interface PhysicsTickListener
Callback interface from the physics thread, used to clear/apply forces.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
physicsTick
(PhysicsSpace space, float timeStep) Callback invoked just after the physics has been stepped.void
prePhysicsTick
(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 clear/apply forces 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)
-