Package com.jme3.bullet
Interface PhysicsTickListener
- All Known Implementing Classes:
BetterCharacterControl
,BulletAppState
,DacLinks
,DynamicAnimControl
public interface PhysicsTickListener
Callback interface from the physics thread, used to clear/apply forces.
This interface is shared between JBullet and Native Bullet.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
physicsTick
(PhysicsSpace space, float tpf) Callback from Bullet, invoked just after the physics has been stepped.void
prePhysicsTick
(PhysicsSpace space, float tpf) Callback from Bullet, invoked just before the physics is stepped.
-
Method Details
-
prePhysicsTick
Callback from Bullet, invoked just before the physics is stepped. A good time to clear/apply forces.- Parameters:
space
- the space that is about to be stepped (not null)tpf
- the time per physics step (in seconds, ≥0)
-
physicsTick
Callback from Bullet, invoked just after the physics has been stepped. Use it to check for forces etc.- Parameters:
space
- the space that was just stepped (not null)tpf
- the time per physics step (in seconds, ≥0)
-