MeshCollider
A 3D collider that uses mesh geometry for collision.
| Type | Name | Interface Description |
|---|---|---|
| Variables | convex: 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. |
| Functions | constructor() |
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) {
}
}