Page 1 of 1

btRigidBody translate() + active body = fail?

Posted: Thu Jul 04, 2013 10:44 am
by Neirdan
Everything is in the title: I'm using translate() on a kinematic, infinite mass btRigidBody and it doesn't work if the btRigidBody is active.
Same result with body->getWorldTransform().setOrigin() (well, that's what translate() does).

I see the rigidbody moving but then it goes back to it's initial position after my simulation step.

Any explanation?
I don't use a motion state to update render mesh positions, but would that be a possible answer?

Edit: It was indeed the explanation. I removed the kinematic flag and forced a disable_desactivation to check the behavior. It's just the default motion state messing with the body because it's flagged kinematic.