btActionInterface in collision world

Post Reply
Chaz
Posts: 44
Joined: Mon Jan 12, 2015 1:36 pm

btActionInterface in collision world

Post 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
User avatar
drleviathan
Posts: 849
Joined: Tue Sep 30, 2014 6:03 pm
Location: San Francisco

Re: btActionInterface in collision world

Post by drleviathan »

btDiscreteDynamicsWorld derives from btCollisionWorld and correctly calls updateAction() on actions that have been added. Use that.
Chaz
Posts: 44
Joined: Mon Jan 12, 2015 1:36 pm

Re: btActionInterface in collision world

Post 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.
Post Reply