The collision category bits. Normally you would just set one bit.
publicintCategoryBits
리턴
int
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.
publicintGroupIndex
리턴
int
MaskBits 공개적으로 프로퍼티
The collision mask bits. This states the categories that this shape would accept for collision.