Class: CollisionFilter
physics/collisionFilter.CollisionFilter
Constructors
constructor
โข new CollisionFilter(category?
, mask?
, group?
)
Parameters
Name | Type | Default value |
---|---|---|
category | number | 0x001 |
mask | number | 0xffffffff |
group | number | 0 |
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
Name | Type | Description |
---|---|---|
filter | CollisionFilter | The filter to check against |
Returns
boolean
Wether or not the collision can occur
Defined in
src/physics/collisionFilter.ts:18