External Publication
Visit Post

applyCentralForce() in simpleUpdate or prePhysicsTick

jMonkeyEngine Hub June 25, 2026
Source

The demo is the one included in the SDK. Rolling the Monkey.

The manual, I mean the jMonkey docs, and some things such as the one on PhysicsTickListeners.

wiki.jmonkeyengine.org

jMonkeyEngine Docs

Physics Listeners

It says:

“When you write game mechanics that apply forces, you must implement a tick listener (com.jme3.bullet.PhysicsTickListener) for it. The tick listener makes certain the forces are not dropped, but applied in time for the next physics tick”

Then

  • prePhysicsTick(PhysicsSpace space, float tpf) is called before each step, here you apply forces (change the state).

While I used the Minie documentation, I don’t remember seeing anything on the ticklistener in that one. I tried to search it now, but the only thing I found that the ForceDemo.java the force updates are in the tick listener.

Discussion in the ATmosphere

Loading comments...