Page 1 of 1

btActionInterface in collision world

Posted: Wed Apr 08, 2015 12:43 pm
by Chaz
Hey. Some time ago I had used btActionInterface to implement my own character behaviour.
So in that class was updateAction method which was called every step of simulation dynamic world.
But how to use it in CollisionWorld? CollisionWorld has not any step simulation, yep? So how to dealing with it?
I have to implement my own updateAction method or there are some builtin method to do that?
p.s. sry for my bad eng

Re: btActionInterface in collision world

Posted: Wed Apr 08, 2015 3:47 pm
by drleviathan
btDiscreteDynamicsWorld derives from btCollisionWorld and correctly calls updateAction() on actions that have been added. Use that.

Re: btActionInterface in collision world

Posted: Wed Apr 08, 2015 4:33 pm
by Chaz
drleviathan wrote:btDiscreteDynamicsWorld derives from btCollisionWorld and correctly calls updateAction() on actions that have been added. Use that.
Ah, thanks, I will. Just thought that btDiscreteDynamicsWorld is excessively.