コード例 #1
0
	unsigned GetColMask() const{
		if (mSelf->getBroadphaseHandle())
			return mSelf->getBroadphaseHandle()->m_collisionFilterMask;
		else
			return -1;
	}
コード例 #2
0
	void SetColMask(unsigned mask){
		if (mSelf->getBroadphaseHandle())
			mSelf->getBroadphaseHandle()->m_collisionFilterMask = mask;
	}
コード例 #3
0
	void RemoveCollisionFilter(unsigned flag){
		if (mSelf->getBroadphaseHandle())
			mSelf->getBroadphaseHandle()->m_collisionFilterGroup = mSelf->getBroadphaseHandle()->m_collisionFilterGroup & ~flag;
	}
コード例 #4
0
	void AddCollisionFilter(unsigned flag){
		if (mSelf->getBroadphaseHandle())
			mSelf->getBroadphaseHandle()->m_collisionFilterGroup |= flag;
	}
コード例 #5
0
	void SetCollisionFilter(unsigned group){
		if (mSelf->getBroadphaseHandle())
			mSelf->getBroadphaseHandle()->m_collisionFilterGroup = group;
	}