Class RigidBodyComponent

Hierarchy (view full)

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

rebound: number = 1
uuid: string = ...

Accessors

  • get aabb(): AABB
  • Returns the Axis Aligned Bounding Box of the component. The returned value is overridden with the parent entity transform when .matchContainerTransform is set to true

    Returns AABB

  • set aabb(value): void
  • Parameters

    • value: AABB

    Returns void

Methods