Options
All
  • Public
  • Public/Protected
  • All
Menu

Collider component is used to detect collisions between entities.

Hierarchy

Index

Constructors

constructor

Properties

enabled

enabled: boolean

Is the component enabled.

entity

entity: Entity

Entity that this component is attached to.

isTrigger

isTrigger: boolean = false

Is the collider a trigger.

offset

offset: Vector2 = ...

The collider offset.

size

size: Vector2 = ...

The collider size.

Accessors

id

  • get id(): string

rect

Methods

awake

  • awake(): void

lateUpdate

  • lateUpdate(): void

start

  • start(): void

update

  • update(): void

Generated using TypeDoc