Skip to main content

CapsuleCollider

Represents a capsule-shaped collider component used for physics collision detection.

TypeNameInterface Description
Variablesheight: number

• Function: Gets or sets the authored height of the capsule collider. Together with , this controls the final capsule shape used by the APJS physics wrapper. Defaults to 8.

Returns The height of the capsule collider

Variablesradius: number

• Function: Gets or sets the authored radius of the capsule collider. Larger values make the capsule thicker. Defaults to 5.

Returns The radius of the capsule collider

Functionsconstructor()

Examples​

constructor()​

let obj = new APJS.CapsuleCollider();

Use Case​

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