Class b2FilterData

This holds contact filtering data.

Index

Properties

Methods

Properties

public categoryBits: number

The collision category bits. Normally you would just set one bit.

public groupIndex: number

Collision groups allow a certain group of objects to never collide (negative) or always collide (positive). Zero means no collision group. Non-zero group filtering always wins against the mask bits.

public maskBits: number

The collision mask bits. This states the categories that this shape would accept for collision.

Methods

public Copy(): b2FilterData

Creates a copy of the filter data.

Returns

b2FilterData

Copy of this filter data.