Skip to main content

Joint2D

Base class for all 2D joints.

TypeNameInterface Description
Variablesanchor: Vector2f

Function: Local anchor point on this body. The value is authored in this joint's own local 2D space, not world space.

Variablesbreakable: boolean

Function: Enables or disables break thresholds for this joint. Defaults to false. When false, and are ignored.

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

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

VariablesconnectedAnchor: Vector2f

Function: Local anchor point on the connected body. The value is authored in the connected body's local 2D space, not world space.

Functionsconstructor()

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