|
|
@ -71,8 +71,11 @@ void Actor::enableCollisionBody(bool collision)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Actor::updateCollisionMask()
|
|
|
|
void Actor::updateCollisionMask()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (mCollisionObject.get()->getWorldArrayIndex() >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mCollisionWorld->removeCollisionObject(mCollisionObject.get());
|
|
|
|
mCollisionWorld->removeCollisionObject(mCollisionObject.get());
|
|
|
|
|
|
|
|
}
|
|
|
|
int collisionMask = CollisionType_World | CollisionType_HeightMap;
|
|
|
|
int collisionMask = CollisionType_World | CollisionType_HeightMap;
|
|
|
|
if (mExternalCollisionMode)
|
|
|
|
if (mExternalCollisionMode)
|
|
|
|
collisionMask |= CollisionType_Actor | CollisionType_Projectile | CollisionType_Door;
|
|
|
|
collisionMask |= CollisionType_Actor | CollisionType_Projectile | CollisionType_Door;
|
|
|
|