Box2d :roll soft body ball
Asked Answered
E

1

1

I made a soft body ball int box2d that looks like that:

enter image description here

Every point of the circle is a box2d body and every line is a distance joint. How can i roll it? I don't want to change the world gravity and just let it roll , I want it to start spinning from the center (not every circle point independent).

I just need the geeneral idea ,not code.

Ednaedny answered 18/8, 2013 at 10:55 Comment(0)
P
2

The general idea is to apply the right force to each body. If you want rotation - these forces are normals to the vectors from the center of the ball to the center of the body.

Peddada answered 18/8, 2013 at 12:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.