Ball and Socket Constraint
This constraint emulates a joint. It attempts to line up the pivot positions but puts no restrictions on the relative rotation of the two rigid bodies. It’s great for realistic physics animations for joints.
Example
This example shows a Ball and Socket Constraint with two simple geometry meshes.
The Ball and Socket pivot is located at 0.5, 0, 0.5
on the first object and 0.5, 0, -0.5
on the second. You may also wish to modify the axis (rotation) point.
This setup creates a realistic ball and socket joint.
See Mattercraft's full API documentation here.
Next article: Locked Constraint