setWorldTransform imparts angular momentum?

jb485
Posts: 2
Joined: Tue Mar 29, 2011 9:53 pm

setWorldTransform imparts angular momentum?

Post by jb485 »

When I use SetWorldTransform to set the orientation of a RigidBody, the body starts to spin very fast instead of just changing to the specified angles. I guessed this might be due to the physics engine interpreting the sudden change in angle as a physical change, and therefore giving it large angular momentum. Is this the case? And if so what is the proper way to manually readjust an object's orientation (or position) without imparting momentum?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: setWorldTransform imparts angular momentum?

Post by Erwin Coumans »

I've not seen such behaviour before. Can you easily reproduce this in any of the Bullet demos?

Thanks,
Erwin
Blacky11
Posts: 3
Joined: Wed Jul 27, 2011 12:17 pm

Re: setWorldTransform imparts angular momentum?

Post by Blacky11 »

I've never faced such a problem as well
interested in the decidion just for a case