Portability | portable (needs FFI) |
---|---|
Stability | provisional |
Maintainer | felipe.lessa@gmail.com |
Joints that constrain bodies.
Joints
A joint represents a constrain between two bodies. Don't forget to add the bodies and the joint to the space.
There are currently four types of joints. When appending
a number to a property, we hint that it refer to one of
the bodies that the joint is contraining (e.g. anchor2
is the position of the anchor on the second body in its
coordinates).
Pin | A pin joint connects the bodies with a solid pin. The anchor points are kept at a fixed distance. |
Slide | A slide joint is similar to a pin joint, however it has a minimum and a maximum distance. |
Pivot | A pivot joint allows the bodies to pivot around a single point in world's coordinates. Both should be already in place. |
Groove | A groove joint attaches a point on the second body to a groove in the first one. |