Options
All
  • Public
  • Public/Protected
  • All
Menu

Extended matter collision event data with game objects.

Hierarchy

  • MatterCollisionData
    • ExtendedMatterCollisionData

Index

Properties

axisBody

axisBody: BodyType

A reference to the dominant axis body.

axisNumber

axisNumber: number

The index of the dominant collision axis vector (edge normal)

bodyA

bodyA: BodyType

A reference to the first body involved in the collision.

bodyB

bodyB: BodyType

A reference to the second body involved in the collision.

collided

collided: boolean

Have the pair collided or not?

depth

depth: number

The depth of the collision on the minimum overlap.

friction

friction: number

The resulting friction from the collision.

frictionStatic

frictionStatic: number

The resulting static friction from the collision.

Optional gameObjectA

gameObjectA: CollidingObject

Optional gameObjectB

gameObjectB: CollidingObject

inverseMass

inverseMass: number

The resulting inverse mass from the collision.

normal

normal: Vector

The collision normal, facing away from Body A.

parentA

parentA: BodyType

A reference to the parent of Body A, or to Body A itself if it has no parent.

parentB

parentB: BodyType

A reference to the parent of Body B, or to Body B itself if it has no parent.

penetration

penetration: Vector

The penetration distances between the two bodies.

restitution

restitution: number

The resulting restitution from the collision.

slop

slop: number

The resulting slop from the collision.

supports

supports: Vector[]

An array of support points, either exactly one or two points.

tangent

tangent: Vector

The tangent of the collision normal.