A constraint forces its owner to stay either further from, nearer to, or exactly at a given distance from its target.
To influence some object, push a LimitDistanceConstraint instance into the Object3D.constraints array.
target — constraint's target object.
See the base TargetConstraint class for common properties.
The distance from target. Default is 0.0.
The percentage of influence the constraint has on the object. Default is 1.0 (100%).
Used to check whether this or derived classes are limit distance constraints. Default is true.
Specifies the distance clamping mode. Default is 'LIMITDIST_ONSURFACE'.
"LIMITDIST_INSIDE""LIMITDIST_OUTSIDE""LIMITDIST_ONSURFACE"
The constraint's type. Equals to 'LimitDistanceConstraint'.
See the base TargetConstraint class for common methods.
You can use the limit transform puzzle to apply LimitDistanceConstraint in a visual manner.
For more info on how to obtain the source code of this module see this page.