Joint2D
Base class for all 2D joints.
| Type | Name | Interface Description |
|---|---|---|
| Variables | anchor: Vector2f | • Function: Local anchor point on this body. The value is authored in this joint's own local 2D space, not world space. |
| Variables | breakable: boolean | • Function: Enables or disables break thresholds for this joint. Defaults to false. When false, and are ignored. |
| Variables | breakingForce: number | • Function: Force threshold that breaks this joint. This is a break limit, not a force actively applied by the joint, and it is used only when is true. |
| Variables | breakingTorque: number | • Function: Torque threshold that breaks this joint. This is a break limit, not a torque actively applied by the joint, and it is used only when is true. |
| Variables | connectedAnchor: Vector2f | • Function: Local anchor point on the connected body. The value is authored in the connected body's local 2D space, not world space. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.Joint2D();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Joint2D here
}
onUpdate(deltaTime: number) {
}
}