API Docs for: 0.7.0

AABBHelper

Helper that visualizes the boundary of a target Component subtype with a World-space axis-aligned boundary (AABB).

Constructor

AABBHelper

(
  • cfg
)

Parameters:

  • cfg

    Configuration

    • [target] Number | String | Component optional

      ID or instance of a Component subtype with a World-space axis-aligned boundary (AABB).

    • [color=[0.4,0.4,0.4]] Float32Array optional

      Emmissive color

    • [visible=true] Boolean optional

      Indicates whether or not this helper is visible.

Index

Properties

Events

Properties

color

Float32Array

Emissive color of this AABBHelper.

Fires an color event on change.

Default: [0,1,0]

target

Component

The target Component subtype.

Must be within the same Scene as this CameraFollowAnimation. Defaults to the parent Scene when set to a null or undefined value.

visible

Boolean

Indicates whether this AABBHelper is visible or not.

Fires a visible event on change.

Default: true

Events

color

Fired whenever this AABBHelper's color property changes.

Event Payload:

  • value Float32Array

    The property's new value

visible

Fired whenever this helper's visible property changes.

Event Payload:

  • value Boolean

    The property's new value