SpringJoint
A 3D spring joint.
| Type | Name | Interface Description |
|---|---|---|
| Variables | damping: number | • Function: User-facing damping control for this spring joint from 0 to 1. Larger values make oscillation die out faster, so the connected bodies stop bouncing and settle sooner. |
| Variables | tolerance: number | • Function: User-facing softness control for this spring joint from 0 to 1. Larger values let the connected bodies stretch or compress farther from their rest distance before the spring pulls back strongly. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.SpringJoint();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use SpringJoint here
}
onUpdate(deltaTime: number) {
}
}