Dictates constraint type and settings. Note, when setting this field it creates a copy of the constraint, rather than referencing it. So if you intend to modify the constraint after assigning it, you must do so on the component's constraint field, rather than the source constraint object.
Show the constraint with debug-draw.
If disabled, the Component will stop enacting its behavior.
Readonly
sceneThe scene object this component is on.
Reference to connected target collider. If null, constraint target is attached to a fixed world transform.
Readonly
uniqueReturns the SceneObject the component is attached to.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
The target is attached to the constraint by a fixed local-space matrix, calculated from the difference between the target's and the constraint's world-space transforms. This local-space matrix is generated on-load, or whenever the target is changed. Call this function to explicitly recalculate it for the current world-space transforms.
Used to apply a constraint to an object.
Example