1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 23:39:41 +00:00

Disable debug drawing for raycasting shapes

This reduces performance too much, and seeing both shapes overlaid on top of each other is confusing anyway. This can be reintroduced via a setting if necessary.
This commit is contained in:
scrawl 2014-11-29 16:51:45 +01:00
parent 5fa7536427
commit d3d5c1fd15

View file

@ -514,6 +514,7 @@ namespace Physic
assert (mRaycastingObjectMap.find(name) == mRaycastingObjectMap.end());
mRaycastingObjectMap[name] = body;
mDynamicsWorld->addRigidBody(body,CollisionType_Raycasting,CollisionType_Raycasting|CollisionType_Projectile);
body->setCollisionFlags(body->getCollisionFlags() | btCollisionObject::CF_DISABLE_VISUALIZE_OBJECT);
}
return body;