Joint3D
Base class for all 3D joints.
| Type | Name | Interface Description |
|---|---|---|
| Variables | anchor: Vector3f | • Function: Local anchor point on this body. It is authored relative to this joint's own SceneObject and converted to a world-space point when the native joint is created. |
| Variables | breakingForce: number | • Function: Force threshold that breaks this 3D joint. This is a break limit, not a force actively applied by the joint. A value of -1 disables break checks for this constraint. When a joint breaks, only the native constraint stops solving. The connected RigidBodies keep their current motion and can still be affected by gravity, external forces, collisions, and any other joints that remain active. For compound joints such as and , this force limit applies only to the positional constraint part. The angular part has its own break threshold via . |
| Variables | breakingTorque: number | • Function: Torque threshold that breaks this 3D joint. This is a break limit, not a torque actively applied by the joint. A value of -1 disables break checks for this constraint. This property is used only by joint types that create a second angular constraint, such as and . |
| Variables | connectedAnchor: Vector3f | • Function: Local anchor point on the connected body. It is authored relative to the connected body and converted to a world-space point when the native joint is created. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.Joint3D();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Joint3D here
}
onUpdate(deltaTime: number) {
}
}