Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PostCollisionEvent<T>

Event thrown on an actor when a collision has been resolved (body reacted) this frame

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 did collide with the current actor

    • side: Side

      The side that did collide with the current actor

    • intersection: Vector

      Intersection vector

    Returns PostCollisionEvent

Properties

intersection

intersection: Vector

Intersection vector

other

other: T

The actor that did collide with the current actor

side

side: Side

The side that did collide 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