HingeJoint2D
A 2D hinge joint.
| Type | Name | Interface Description |
|---|---|---|
| Variables | maxAngle: number | • Function: Maximum allowed relative hinge angle in degrees. This limit applies to the relative rotation between the two connected bodies and is used only when is enabled. |
| Variables | minAngle: number | • Function: Minimum allowed relative hinge angle in degrees. This limit applies to the relative rotation between the two connected bodies and is used only when is enabled. |
| Variables | useLimits: boolean | • Function: Enables or disables relative angle limits for this 2D hinge. When enabled, and constrain the relative rotation between the two connected bodies. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.HingeJoint2D();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use HingeJoint2D here
}
onUpdate(deltaTime: number) {
}
}