com.jmex.physics
Interface PhysicsUpdateCallback

All Known Implementing Classes:
FrictionCallback

public interface PhysicsUpdateCallback

This class provides a callback for extending the behaviour of the physics. From all the methods in subclasses the scenegraph should not be altered.

Author:
Irrisor

Method Summary
 void afterStep(PhysicsSpace space, float time)
          Define logic that you want to be executed after the PhysicsSpace does it's calculations.
 void beforeStep(PhysicsSpace space, float time)
          Define logic that you want to be executed before the PhysicsSpace does it's calculations.
 

Method Detail

beforeStep

void beforeStep(PhysicsSpace space,
                float time)
Define logic that you want to be executed before the PhysicsSpace does it's calculations.

Parameters:
space - space that stepps
time - amount of time the step simulates

afterStep

void afterStep(PhysicsSpace space,
               float time)
Define logic that you want to be executed after the PhysicsSpace does it's calculations.

Parameters:
space - space that stepps
time - amount of time the step simulated