MCPcopy Create free account
hub / github.com/melonjs/melonJS / setCollisionMask

Method setCollisionMask

packages/melonjs/src/physics/adapter.ts:149–149  ·  view source on GitHub ↗

* Set the bit mask of collision types this body collides with. * @see collision.types

(mask: number)

Source from the content-addressed store, hash-verified

147 * @see collision.types
148 */
149 setCollisionMask(mask: number): void;
150 /** Set the collision category bit for this body. */
151 setCollisionType?(type: number): void;
152 /** Toggle sensor mode (fires collision events without push-out). */

Callers 15

parity.spec.tsFile · 0.65
setCollisionMaskMethod · 0.65
constructorMethod · 0.65
onActivateEventMethod · 0.65
quadtree.spec.jsFile · 0.65
body.spec.jsFile · 0.65
parity.spec.tsFile · 0.65

Implementers 1

Bodypackages/melonjs/src/physics/builtin/b

Calls

no outgoing calls

Tested by 1

onActivateEventMethod · 0.52