Skip to main content

ConstantForce3D

Returned by when using continuous force modes ( or ).

TypeNameInterface Description
VariablesworldForce: Vector3f

Function: World-space force in Newtons.

VariablesworldTorque: Vector3f

Function: World-space torque in Newton-meters.

Functionsconstructor(worldForce: Vector3f, torque: Vector3f)

Examples

constructor(worldForce: Vector3f, torque: Vector3f)

let obj = new APJS.ConstantForce3D();

Use Case

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