|
|
@ -39,6 +39,13 @@ namespace Resource
|
|
|
|
const_cast<btBvhTriangleMeshShape*>(trishape->getChildShape()), trishape->getLocalScaling()));
|
|
|
|
const_cast<btBvhTriangleMeshShape*>(trishape->getChildShape()), trishape->getLocalScaling()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (shape->getShapeType() == TRIANGLE_MESH_SHAPE_PROXYTYPE)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
const btBvhTriangleMeshShape* trishape = static_cast<const btBvhTriangleMeshShape*>(shape);
|
|
|
|
|
|
|
|
return CollisionShapePtr(new btScaledBvhTriangleMeshShape(
|
|
|
|
|
|
|
|
const_cast<btBvhTriangleMeshShape*>(trishape), btVector3(1.f, 1.f, 1.f)));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (shape->getShapeType() == BOX_SHAPE_PROXYTYPE)
|
|
|
|
if (shape->getShapeType() == BOX_SHAPE_PROXYTYPE)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const btBoxShape* boxshape = static_cast<const btBoxShape*>(shape);
|
|
|
|
const btBoxShape* boxshape = static_cast<const btBoxShape*>(shape);
|
|
|
|