Hi, I'm new to box2d. I used setXForm to set a static body's position. I moved the body down, and bodies on it dropped. But when I moved the static body up, bodies on it didn't move. I did the same way with chipmunk and it works. So in box2d, how can I move a static body up, and let bodies on it moves up with it?
And there is segment shape type in chipmunk, how can I handle segment shapes with box2d?
Moving static body in box2d
(3 posts) (2 voices)-
Posted 2 years ago #
-
I think box2d calls them kinematic bodies, its a special case where static bodies are able to move. You'll have to do a bit of research, as I believe its a relatively new add to box2d.
Posted 2 years ago # -
Thank you for your advice
Posted 2 years ago #
Reply
You must log in to post.