Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PreCollisionEvent<T>

Event thrown on an actor when a collision will occur this frame if it resolves

Type parameters

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Parameters

    • actor: T

      The actor the event was thrown on

    • other: T

      The actor that will collided with the current actor

    • side: Side

      The side that will be collided with the current actor

    • intersection: Vector

      Intersection vector

    Returns PreCollisionEvent

Properties

intersection

intersection: Vector

Intersection vector

other

other: T

The actor that will collided with the current actor

side

side: Side

The side that will be collided with the current actor

target

target: T

Target object for this event.

Accessors

actor

  • get actor(): T
  • set actor(actor: T): void

bubbles

  • get bubbles(): boolean
  • set bubbles(value: boolean): void
  • If set to false, prevents event from propagating to other actors. If true it will be propagated to all actors that apply.

    Returns boolean

  • If set to false, prevents event from propagating to other actors. If true it will be propagated to all actors that apply.

    Parameters

    • value: boolean

    Returns void

Methods

stopPropagation

  • stopPropagation(): void