Collider

Collider

Creates colliders.

Constructor

new Collider($parameters)

Description:
  • Creates a new collider.
Source:
Example
const collider = new Collider({$boundaries, $traversable, $type});
Parameters:
Name Type Attributes Description
$parameters Object The given parameters.
$parameters.$boundaries AABB The boundaries of the collider to create.
$parameters.$traversable boolean <optional>
The traversable status of the collider to create.
$parameters.$type typecollider The type of the collider to create.

Members

boundaries :AABB

Description:
  • Gets the boundaries.
Source:
Gets the boundaries.
Type:

traversable :boolean

Description:
  • Gets the traversable status.
Source:
Gets the traversable status.
Type:
  • boolean

type :typecollider

Description:
  • Gets the collider type.
Source:
Gets the collider type.
Type:
  • typecollider

Type Definitions

typecollider

Description:
  • A collider type.
Source:
A collider type.
Type:
  • COLLIDERTYPES.DYNAMIC | COLLIDERTYPES.KINETIC | COLLIDERTYPES.STATIC