Only by changing it's linear (and angular if required) velocity by yourself. Changing position instead of velocity will provide incorrect physical behavior in case your body will collide with other bodies. Your body's type should be kinematic in this case too.
0
votes
Andrew is correct. Take a look in b2Body.h. It tells you everything you need to know.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more