Phaser.Types.Physics.Matter
Scope: static
Static functions
MatterBody
MatterBody
Source: src/physics/matter-js/typedefs/MatterBody.js#L1
Since: 3.22.0
MatterBodyConfig
MatterBodyConfig
Source: src/physics/matter-js/typedefs/MatterBodyConfig.js#L1
Since: 3.22.0
MatterBodyRenderConfig
MatterBodyRenderConfig
Source: src/physics/matter-js/typedefs/MatterBodyRenderConfig.js#L1
Since: 3.22.0
MatterBodyTileOptions
MatterBodyTileOptions
Source: src/physics/matter-js/typedefs/MatterBodyTileOptions.js#L1
Since: 3.0.0
MatterChamferConfig
MatterChamferConfig
Source: src/physics/matter-js/typedefs/MatterChamferConfig.js#L1
Since: 3.22.0
MatterCollisionData
MatterCollisionData
Source: src/physics/matter-js/typedefs/MatterCollisionData.js#L1
Since: 3.22.0
MatterCollisionFilter
MatterCollisionFilter
Description:
An Object that specifies the collision filtering properties of this body.
Collisions between two bodies will obey the following rules:
-
If the two bodies have the same non-zero value of
collisionFilter.group,they will always collide if the value is positive, and they will never collide
if the value is negative.
-
If the two bodies have different values of
collisionFilter.groupor if one(or both) of the bodies has a value of 0, then the category/mask rules apply as follows:
Each body belongs to a collision category, given by collisionFilter.category. This
value is used as a bit field and the category should have only one bit set, meaning that
the value of this property is a power of two in the range [1, 2^31]. Thus, there are 32
different collision categories available.
Each body also defines a collision bitmask, given by collisionFilter.mask which specifies
the categories it collides with (the value is the bitwise AND value of all these categories).
Using the category/mask rules, two bodies A and B collide if each includes the other's
category in its mask, i.e. (categoryA & maskB) !== 0 and (categoryB & maskA) !== 0
are both true.
Source: src/physics/matter-js/typedefs/MatterCollisionFilter.js#L1
Since: 3.22.0
MatterCollisionPair
MatterCollisionPair
Source: src/physics/matter-js/typedefs/MatterCollisionPair.js#L1
Since: 3.22.0
MatterConstraintConfig
MatterConstraintConfig
Source: src/physics/matter-js/typedefs/MatterConstraintConfig.js#L1
Since: 3.22.0
MatterConstraintRenderConfig
MatterConstraintRenderConfig
Source: src/physics/matter-js/typedefs/MatterConstraintRenderConfig.js#L1
Since: 3.22.0
MatterDebugConfig
MatterDebugConfig
Source: src/physics/matter-js/typedefs/MatterDebugConfig.js#L1
Since: 3.22.0
MatterRunnerConfig
MatterRunnerConfig
Description:
Configuration for the Matter Physics Runner.
Set only one of fps and delta.
delta is the size of the Runner's fixed time step (one physics update).
The "frame delta" is the time elapsed since the last game step.
Depending on the size of the frame delta, the Runner makes zero or more updates per game step.
Source: src/physics/matter-js/typedefs/MatterRunnerConfig.js#L1
Since: 3.22.0
MatterSetBodyConfig
MatterSetBodyConfig
Source: src/physics/matter-js/typedefs/MatterSetBodyConfig.js#L1
Since: 3.22.0
MatterTileOptions
MatterTileOptions
Source: src/physics/matter-js/typedefs/MatterTileOptions.js#L1
Since: 3.0.0
MatterWalls
MatterWalls
Source: src/physics/matter-js/typedefs/MatterWalls.js#L1
Since: 3.0.0
MatterWorldConfig
MatterWorldConfig
Source: src/physics/matter-js/typedefs/MatterWorldConfig.js#L1
Since: 3.0.0