SetWorldTransform or proceedToTransform don't move the body?

JeremyStieglitz
Posts: 4
Joined: Mon Nov 02, 2009 11:14 pm

SetWorldTransform or proceedToTransform don't move the body?

Post by JeremyStieglitz »

Hey guys,

I have a kinematic rigid body, and when I call setWorldTransform or proceedToTransform it doesn't actually get the new transform (hell I can't get it to work with fully dynamic rigid bodies either). Currently I have to completely recreate the RB to put it at the new location, which defeats the purpose of having a kinematic RB in the first place. Any idea how this is supposed to be handled?

Thanks much,
Jeremy Stieglitz
JeremyStieglitz
Posts: 4
Joined: Mon Nov 02, 2009 11:14 pm

Re: SetWorldTransform or proceedToTransform don't move the body?

Post by JeremyStieglitz »

Ok, I think I figured it out. I had to call "btCollisionObject::activate(true)" after setting the transform. Presumably that causes the new transform to actually be updated in the octree or something like that? Just wondering :)

Thanks,
Jer