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:
parent
5fa7536427
commit
d3d5c1fd15
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue