Skip to main content

HingeJoint2D

A 2D hinge joint.

TypeNameInterface Description
VariablesmaxAngle: number

Function: Maximum allowed relative hinge angle in degrees. This limit applies to the relative rotation between the two connected bodies and is used only when is enabled.

VariablesminAngle: number

Function: Minimum allowed relative hinge angle in degrees. This limit applies to the relative rotation between the two connected bodies and is used only when is enabled.

VariablesuseLimits: boolean

Function: Enables or disables relative angle limits for this 2D hinge. When enabled, and constrain the relative rotation between the two connected bodies.

Functionsconstructor()

Examples

constructor()

let obj = new APJS.HingeJoint2D();

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use HingeJoint2D here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies