CapsuleCollider
Represents a capsule-shaped collider component used for physics collision detection.
| Type | Name | Interface Description |
|---|---|---|
| Variables | height: 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 |
| Variables | radius: 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 |
| Functions | constructor() |
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) {
}
}