Interface PhysicsTickListener

All Known Implementing Classes:
BetterCharacterControl, BulletAppState, DacLinks, DynamicAnimControl, MultiBodyAppState, SoftPhysicsAppState

public interface PhysicsTickListener
Callback interface from the physics thread, used to clear/apply forces.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

      void prePhysicsTick(PhysicsSpace space, float timeStep)
      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

      void physicsTick(PhysicsSpace space, float timeStep)
      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)