Collision won't wok if I use Body::setPositionOrientation

lance

05-04-2006 11:29:59

Finally I've set up a scene and all things correct! :D
And I can move objects around using mouse! The only qusition is, I moved the object using Body::setPositionOrientation, and
they started to get into one another. What I think is they should knock each other away, just like when you move an object in Stunt Playground! How can I do this? Many thanks!

nathanwilliams6

05-04-2006 11:46:15

you moved the objects using the mouse which called setPositionOrientation ?

this would result in them getting stuck within one another, because you are telling the elements to just move to that position and not applying a force that would get them to that position.

setPositionOrientation will just put a body in a position, regardless of physical constraints or what already there.

cookie123

18-04-2006 09:58:51

So how to apply physics correctly? I am having simular problems moving objects.