Class BoundingBoxComponent

This component represents a bounding box that can be used for basic collision detection. It stores an Axis Aligned Bounding Box (AABB) defining the bounds.

Hierarchy (view full)

Implements

Constructors

Properties

isContainer: boolean = false

Set to true if the bounding box component should act as a container for other objects to not escape from

matchContainerTransform: boolean = false

If set to true it will automatically align the BoundingBox AABB to the parent entity transform

onCollisionCb: undefined | CollisionCallback

Callback to invoke when a collision with another physical object is detected

uuid: string = ...

Accessors

Methods