HingeJoint
A 3D hinge joint.
| Type | Name | Interface Description |
|---|---|---|
| Variables | maxAngle: number | • Function: Maximum allowed relative rotation around the hinge axis, in degrees. This limit is measured between the two connected bodies and is used only when is enabled. |
| Variables | minAngle: number | • Function: Minimum allowed relative rotation around the hinge axis, in degrees. This limit is measured between the two connected bodies and is used only when is enabled. |
| Variables | useLimits: boolean | • Function: Enables or disables hinge angle limits. When false, the hinge falls back to the full engine-supported range instead of using and . |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.HingeJoint();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use HingeJoint here
}
onUpdate(deltaTime: number) {
}
}