Bullet Physics using tpf

I sorry if I ask too many questions on this form,

but I need to know if the jbullet physics engine update method is called with the jmonkeyengine update method.

So do I need to do this in update method

[java]public void simpleUpdate(float tpf) {

playerPhysics.applyCentralForce(new Vector3f(0,0,1*tpf)); // is the tpf good here


No its not needed, physics is time-independent. Implement the PhysicsTickListener to be called in the frequency of physics updates.

1 Like