Skip to main content

Class: CollisionFilter

physics/collisionFilter.CollisionFilter

Constructors

constructor

โ€ข new CollisionFilter(category?, mask?, group?)

Parameters

NameTypeDefault value
categorynumber0x001
masknumber0xffffffff
groupnumber0

Defined in

src/physics/collisionFilter.ts:6

Properties

category

โ€ข category: number = 0x0001

Defined in

src/physics/collisionFilter.ts:2


group

โ€ข group: number = 0

Defined in

src/physics/collisionFilter.ts:4


mask

โ€ข mask: number = 0xffffffff

Defined in

src/physics/collisionFilter.ts:3

Methods

reject

โ–ธ reject(filter): boolean

Determines wether this collision should be rejected or not.

Parameters

NameTypeDescription
filterCollisionFilterThe filter to check against

Returns

boolean

Wether or not the collision can occur

Defined in

src/physics/collisionFilter.ts:18