Skip to main content

MeshCollider

A 3D collider that uses mesh geometry for collision.

TypeNameInterface Description
Variablesconvex: boolean

Function: Gets or sets whether this mesh collider should use convex-hull collision. When enabled, the runtime shape is simplified toward a convex hull. This is often faster or more stable than full mesh collision, but it may be less accurate for complex concave geometry.

Functionsconstructor()

Examples

constructor()

let obj = new APJS.MeshCollider();

Use Case

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