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
btActionInterface in collision world
-
- Posts: 849
- Joined: Tue Sep 30, 2014 6:03 pm
- Location: San Francisco
Re: btActionInterface in collision world
btDiscreteDynamicsWorld derives from btCollisionWorld and correctly calls updateAction() on actions that have been added. Use that.
-
- Posts: 44
- Joined: Mon Jan 12, 2015 1:36 pm
Re: btActionInterface in collision world
Ah, thanks, I will. Just thought that btDiscreteDynamicsWorld is excessively.drleviathan wrote:btDiscreteDynamicsWorld derives from btCollisionWorld and correctly calls updateAction() on actions that have been added. Use that.