|Portability||portable (needs FFI)|
Joints that constrain bodies.
- data Joint
- data JointType
- newJoint :: Body -> Body -> JointType -> IO Joint
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.
is the position of the anchor on the second body in its
A pin joint connects the bodies with a solid pin. The anchor points are kept at a fixed distance.
A slide joint is similar to a pin joint, however it has a minimum and a maximum distance.
A pivot joint allows the bodies to pivot around a single point in world's coordinates. Both should be already in place.
A groove joint attaches a point on the second body to a groove in the first one.