Sorry I'm very new to this. I simply want to set the position of a body. How do I do this?
Also, if the body is already moving, how would I stop it moving when I manually set it's position?
That's my problem too! 🙂
I guess that to you need to do:
-clear forces on a body
-set linear and angular velocity to zero
-set position of a body
However setting position of a body with setTransform doesn't work as moves the origin of a body, with its shapes staying in place. As a result, my ball starts rotating around a dislocated axis.edit: I looked again and it doesn't work this way; i recalled it wrongly.