Collision fix

c++11
scrawl 10 years ago
parent 0c27869089
commit 60fffec345

@ -480,7 +480,7 @@ namespace Physic
#endif #endif
bool needDelete = false; bool needDelete = false;
if (btBvhTriangleMeshShape* triangleShape = dynamic_cast<btBvhTriangleMeshShape*>(shape->mCollisionShape)) if (btBvhTriangleMeshShape* triangleShape = dynamic_cast<btBvhTriangleMeshShape*>(collisionShape))
{ {
btScaledBvhTriangleMeshShape* scaled = new btScaledBvhTriangleMeshShape(triangleShape, btVector3(scale,scale,scale)); btScaledBvhTriangleMeshShape* scaled = new btScaledBvhTriangleMeshShape(triangleShape, btVector3(scale,scale,scale));
collisionShape = scaled; collisionShape = scaled;

Loading…
Cancel
Save