Options
All
  • Public
  • Public/Protected
  • All
Menu

Phaser Matter Collision Plugin - v1.0.0

Index

Type aliases

CollideContext

CollideContext: any

CollidingObject

CollidingObject: MatterBody | MatterJS.BodyType | Tile | ObjectWithBody

A union of all the types of physics objects we could have in the simulation - from raw Matter.js bodies to tiles and physics-enabled Phaser GameObjects.

CollisionEvent

CollisionEvent: Physics.Matter.Events.CollisionStartEvent | Physics.Matter.Events.CollisionActiveEvent | Physics.Matter.Events.CollisionEndEvent

ObjectWithBody

ObjectWithBody: { body: MatterJS.BodyType }

A valid physics-enabled game object, or just an object that has "body" property

Type declaration

  • body: MatterJS.BodyType

References

default

Renames and exports PhaserMatterCollisionPlugin

Functions

getRootBody

  • getRootBody(body: MatterJS.BodyType): BodyType

isCollidingObject

isMatterBody

  • isMatterBody(obj: any): obj is MatterBody