PackageBox2D.Collision.Shapes
Classpublic class b2FilterData
Sourceb2FilterData.as

This holds contact filtering data.



Public Properties
 PropertyDefined by
  categoryBits : uint = 0x0001
The collision category bits.
b2FilterData
  groupIndex : int = 0
Collision groups allow a certain group of objects to never collide (negative) or always collide (positive).
b2FilterData
  maskBits : uint = 0xFFFF
The collision mask bits.
b2FilterData
Public Methods
 MethodDefined by
  
b2FilterData
Property detail
categoryBitsproperty
public var categoryBits:uint = 0x0001

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

groupIndexproperty 
public var groupIndex:int = 0

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.

maskBitsproperty 
public var maskBits:uint = 0xFFFF

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

Method detail
Copy()method
public function Copy():b2FilterData

Returns
b2FilterData