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

Method setCollisionType

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

Set the collision category bit for this body.

(type: number)

Source from the content-addressed store, hash-verified

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). */
153 setSensor?(isSensor?: boolean): void;
154 /** Set mass directly (recomputes inertia where applicable). */

Callers 10

parity.spec.tsFile · 0.65
constructorMethod · 0.65
body.spec.jsFile · 0.65
parity.spec.tsFile · 0.65
walkFunction · 0.65

Implementers 1

Bodypackages/melonjs/src/physics/builtin/b

Calls

no outgoing calls

Tested by

no test coverage detected