Rigid body update callback

wh1sp3r
Posts: 4
Joined: Fri Sep 16, 2011 9:04 pm

Rigid body update callback

Post by wh1sp3r »

Hello,

i have quick question. Is there a way, how can i assign a callback function, which is called when rigidbody's transform is changed by physics ( recalculated ) ? So, i can update my model in scenemanager easily.

Thank you very much.
User avatar
SynapticBytes
Posts: 74
Joined: Thu Feb 10, 2011 8:27 pm

Re: Rigid body update callback

Post by SynapticBytes »

That's what the motion state is for

http://bulletphysics.org/mediawiki-1.5. ... tionStates