Class: PhysicsPolygon
Physics object wrapper for a polygon shape.
Hierarchy
-
↳
PhysicsPolygon
Constructors
constructor
• new PhysicsPolygon(config
): PhysicsPolygon
Parameters
Name | Type |
---|---|
config |
PhysicsPolygonConfig |
Returns
Overrides
Properties
body
• Readonly
body: b2Body
Inherited from
Methods
setCollisionFilter
▸ setCollisionFilter(config
): void
Parameters
Name | Type |
---|---|
config |
Object |
config.categoryBits? |
number |
config.groupIndex? |
number |
config.maskBits? |
number |
Returns
void