stephengold / Libbulletjme

A JNI interface to Bullet Physics and V-HACD
https://stephengold.github.io/Libbulletjme/lbj-en/English/overview.html
Other
84 stars 10 forks source link

Tick listener #6

Closed AlexisDrogoul closed 3 years ago

AlexisDrogoul commented 3 years ago

Hi,

Is there a way to be notified when one (sub)step of the PhysicsSpace update() has been achieved ? Is there an equivalent to InternalTickCallback (found in previous Bullet and JBullet versions) ?

Thanks in advance !

stephengold commented 3 years ago

Currently there's no per-tick callback. You'd have to single-step the simulation using physicsSpace.update(timeInterval, 0).

AlexisDrogoul commented 3 years ago

Thank you. I'll go with that, then, for the moment.

stephengold commented 3 years ago

Tick listeners added as of v10.4.0 . The essential mechanism is physicsSpace.addTickListener(physicsTickListener).

AlexisDrogoul commented 3 years ago

Thanks !