Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PreCollisionEvent

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

Hierarchy

Index

Constructors

constructor

  • Parameters

    • actor: Actor

      The actor the event was thrown on

    • other: Actor

      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

Protected _name

_name: string = ""

Protected _path

_path: Actor[] = []

Holds the whole path from the Root to the event target

actor

actor: Actor

The actor the event was thrown on

bubbles

bubbles: boolean = true

determines, if event bubbles to the target's ancestors

intersection

intersection: Vector

Intersection vector

other

other: Actor

The actor that will collided with the current actor

side

side: Side

The side that will be collided with the current actor

target

target: Actor

Target object for this event.

Accessors

eventPath

  • get eventPath(): Actor[]

name

  • get name(): string

Methods

Protected _onActionEnd

  • _onActionEnd(_actor?: Actor): void

Protected _onActionStart

  • _onActionStart(_actor?: Actor): void

action

  • action(): void

layPath

  • layPath(actor: Actor): void

propagate

  • propagate(): void

stopPropagation

  • stopPropagation(): void