CannonBoxColliderComponent

CannonBoxColliderComponent

Physics box collider for Cannon.js. To be attached to an entity with a CannonRigidbodyComponent. Also see the CannonSystem.

Constructor

new CannonBoxColliderComponent(settingsopt)

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

The half-extents of the box collider.