Package | Box2D.Collision.Shapes |
Class | public class b2FilterData |
Source | b2FilterData.as |
Property | Defined 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 |
Method | Defined by | ||
---|---|---|---|
b2FilterData |
categoryBits | property |
public var categoryBits:uint = 0x0001
The collision category bits. Normally you would just set one bit.
groupIndex | property |
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.
maskBits | property |
public var maskBits:uint = 0xFFFF
The collision mask bits. This states the categories that this shape would accept for collision.
Copy | () | method |