SpringJoint2D
A 2D spring joint.
| Type | Name | Interface Description |
|---|---|---|
| Variables | damping: number | • Function: User-facing damping control for this 2D spring joint. Value typically ranges from 0 (no damping) to 1 (maximum damping). Larger values make the spring stop oscillating sooner, so the two connected bodies settle more quickly. |
| Variables | tolerance: number | • Function: User-facing softness control for this 2D spring joint. Larger values let the two connected bodies separate or compress farther before the spring pulls back strongly. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.SpringJoint2D();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use SpringJoint2D here
}
onUpdate(deltaTime: number) {
}
}