Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Hit

Index

Constructors

Properties

Constructors

constructor

Properties

collider

collider: Rectangle

delta

delta: Vector2

The overlap between the two objects, and is a vector that can be added to the colliding object’s position to move it back to a non-colliding state.

normal

normal: Vector2

The surface normal at the point of contact.

position

position: Vector2

The point of contact between the two objects (or an estimation of it, in some sweep tests).

time

time: number = 0

Only defined for segment and sweep intersections, and is a fraction from 0 to 1 indicating how far along the line the collision occurred.

(This is the t value for the line equation L(t) = A + t(B - A)).

Generated using TypeDoc