unsigned GetColMask() const{ if (mSelf->getBroadphaseHandle()) return mSelf->getBroadphaseHandle()->m_collisionFilterMask; else return -1; }
void SetColMask(unsigned mask){ if (mSelf->getBroadphaseHandle()) mSelf->getBroadphaseHandle()->m_collisionFilterMask = mask; }
void RemoveCollisionFilter(unsigned flag){ if (mSelf->getBroadphaseHandle()) mSelf->getBroadphaseHandle()->m_collisionFilterGroup = mSelf->getBroadphaseHandle()->m_collisionFilterGroup & ~flag; }
void AddCollisionFilter(unsigned flag){ if (mSelf->getBroadphaseHandle()) mSelf->getBroadphaseHandle()->m_collisionFilterGroup |= flag; }
void SetCollisionFilter(unsigned group){ if (mSelf->getBroadphaseHandle()) mSelf->getBroadphaseHandle()->m_collisionFilterGroup = group; }