|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.tankbattles.scene.camera.ChaseCameraUpdateCallback
public class ChaseCameraUpdateCallback
PhysicsUpdateCallback for updating the chase camera. Should be added to the Physics update callbacks to avoid the stuttering that happens when there's a lack of sync between the openGL render and physics update timers.
| Constructor Summary | |
|---|---|
ChaseCameraUpdateCallback(CustomChaseCamera chaseCamera)
Initializes the chaseCamera witch is going to be updated with. |
|
| Method Summary | |
|---|---|
void |
afterStep(com.jmex.physics.PhysicsSpace pSpace,
float tpf)
The camera update happens after the physics update step. |
void |
beforeStep(com.jmex.physics.PhysicsSpace pSpace,
float tpf)
Nothing happens before physics update step. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChaseCameraUpdateCallback(CustomChaseCamera chaseCamera)
chaseCamera - to be updated.| Method Detail |
|---|
public void afterStep(com.jmex.physics.PhysicsSpace pSpace,
float tpf)
afterStep in interface com.jmex.physics.PhysicsUpdateCallback
public void beforeStep(com.jmex.physics.PhysicsSpace pSpace,
float tpf)
beforeStep in interface com.jmex.physics.PhysicsUpdateCallback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||