Skip to main content

SpringJoint2D

A 2D spring joint.

TypeNameInterface Description
Variablesdamping: 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.

Variablestolerance: 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.

Functionsconstructor()

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) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies