Protected
constructorDictates 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
uniqueDestroys the component.
Returns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
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 specific restrictions on how a SceneObject with BodyComponent can move.
Remarks
This component allows developers to simulate certain types of mechanical connections or joints between objects.
See
Constrain Types guide.
Example