Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | List of all members
b2Filter Struct Reference

This holds contact filtering data. More...

`#include <b2Fixture.h>`

## Public Member Functions
| b2Filter ()

## Public Attributes
uint16 | categoryBits
| The collision category bits. Normally you would just set one bit. More...
uint16 | maskBits
int16 | groupIndex

## Detailed Description

This holds contact filtering data.

## Constructor & Destructor Documentation

b2Filter | ( |  | ) |
| inline

## Member Data Documentation

uint16 categoryBits

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

int16 groupIndex

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.

uint16 maskBits

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

The documentation for this struct was generated from the following file:

- Box2D/Dynamics/b2Fixture.h