Package org.jbox2d.dynamics
Class Filter
java.lang.Object
org.jbox2d.dynamics.Filter
public class Filter
extends java.lang.Object
This holds contact filtering data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The collision category bits.int
Collision groups allow a certain group of objects to never collide (negative) or always collide (positive).int
The collision mask bits. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
categoryBits
public int categoryBitsThe collision category bits. Normally you would just set one bit. -
maskBits
public int maskBitsThe collision mask bits. This states the categories that this shape would accept for collision. -
groupIndex
public int groupIndexCollision 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.
-
-
Constructor Details
-
Filter
public Filter()
-
-
Method Details
-
set
-