Distance Constraint
The Distance Constraint is a type of Constraint that keeps two Rigid Body objects a certain distance from each other.
The Distance Constraint comes with a Max Distance
property. Update this property to set the distance between two rigid bodies.
If the
Max Distance
property is left blank, it will take the distance set in the viewport or the object properties.
Example
This example takes the distance set in the viewport of the two objects, as the Max Distance
is not set.
See Mattercraft's full API documentation here.
Next article: Hinge Constraint