File tree Expand file tree Collapse file tree
src/physics/matter-js/typedefs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/**
2- * @typedef {(MatterJS.Body|Phaser.Physics.Matter.MatterGameObject |Phaser.Physics.Matter.Image|Phaser.Physics.Matter.Sprite|Phaser.Physics.Matter.TileBody) } Phaser.Types.Physics.Matter.MatterBody
2+ * @typedef {(MatterJS.Body|Phaser.GameObjects.GameObject |Phaser.Physics.Matter.Image|Phaser.Physics.Matter.Sprite|Phaser.Physics.Matter.TileBody) } Phaser.Types.Physics.Matter.MatterBody
33 * @since 3.22.0
44 */
Original file line number Diff line number Diff line change 1010 * @property {number } depth - The depth of the collision on the minimum overlap.
1111 * @property {MatterJS.Body } parentA - A reference to the parent of Body A, or to Body A itself if it has no parent.
1212 * @property {MatterJS.Body } parentB - A reference to the parent of Body B, or to Body B itself if it has no parent.
13- * @property {vector } normal - The collision normal, facing away from Body A.
14- * @property {vector } tangent - The tangent of the collision normal.
15- * @property {vector } penetration - The penetration distances between the two bodies.
16- * @property {vector [] } supports - An array of support points, either exactly one or two points.
13+ * @property {MatterJS.Vector } normal - The collision normal, facing away from Body A.
14+ * @property {MatterJS.Vector } tangent - The tangent of the collision normal.
15+ * @property {MatterJS.Vector } penetration - The penetration distances between the two bodies.
16+ * @property {MatterJS.Vector [] } supports - An array of support points, either exactly one or two points.
1717 * @property {number } inverseMass - The resulting inverse mass from the collision.
1818 * @property {number } friction - The resulting friction from the collision.
1919 * @property {number } frictionStatic - The resulting static friction from the collision.
Original file line number Diff line number Diff line change 55 * @property {string } id - The unique auto-generated collision pair id. A combination of the body A and B IDs.
66 * @property {MatterJS.Body } bodyA - A reference to the first body involved in the collision.
77 * @property {MatterJS.Body } bodyB - A reference to the second body involved in the collision.
8- * @property {array } activeContacts - An array containing all of the active contacts between bodies A and B.
8+ * @property {MatterJS.Vector[] } activeContacts - An array containing all of the active contacts between bodies A and B.
99 * @property {number } separation - The amount of separation that occured between bodies A and B.
1010 * @property {boolean } isActive - Is the collision still active or not?
1111 * @property {boolean } confirmedActive - Has Matter determined the collision are being active yet?
You can’t perform that action at this time.
0 commit comments