image

Emanuele Feronato has a new tutorial teaching you about how constraints work in Matter Physics: "I was wondering how to properly handle constraints in the Fling prototype when I probably came to a solution:

Basically a constraint is a rule which must be followed. In our case, the rule is “keep a certain distance between two bodies”. It seems quite an easy rule to follow, but what happens when the only way to keep the required distance causes two bodies to compenetrate?

Here we have a dilemma: keeping the distance and letting a body trespass another body or act as they were solid bodies – and actually they are – and break the constraint?

Look at this example: we have three static bodies at the top, three dynamic bodies at the bottom, three distance constraints with a little stiffness and a big static body in the middle of the screen.

What happens when we reduce the distance?"

Read More