BoxCollider

BoxCollider

Physics box collider.

Constructor

new BoxCollider(settingsopt)

Parameters:
Name Type Attributes Description
settings Object <optional>
Properties
Name Type Attributes Description
halfExtents Vector3 <optional>

The half-extents of the box collider.

Members

halfExtents :Vector3

Methods

(static) createCannonShape(halfExtents) → {CANNON.Box}

Create a new instance of CANNON.Box

Parameters:
Name Type Description
halfExtents Number

clone() → {BoxCollider}

Clone the collider

getCannonShape() → {CANNON.Box}

get Cannon shape for the collider

updateCannonTransform()

Update existing cannon shape