From 30c425f8fab651a94a1b9de9889ac48cfabad4c5 Mon Sep 17 00:00:00 2001 From: Robin Engman Date: Wed, 26 Feb 2014 14:08:49 +0100 Subject: [PATCH] Fixed the damn path --- Code/Physics/GamePhysics/Implementation/PhysicsAPI_Impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Physics/GamePhysics/Implementation/PhysicsAPI_Impl.cpp b/Code/Physics/GamePhysics/Implementation/PhysicsAPI_Impl.cpp index 27cd8ba5..772bf32e 100644 --- a/Code/Physics/GamePhysics/Implementation/PhysicsAPI_Impl.cpp +++ b/Code/Physics/GamePhysics/Implementation/PhysicsAPI_Impl.cpp @@ -234,10 +234,10 @@ ICustomBody* API_Impl::AddTriangleMesh(const std::wstring fileName, ::Oyster::Ma typedef std::codecvt_utf8 convert_typeX; std::wstring_convert converterX; - //std::string bulletPath = converterX.to_bytes(); + std::string bulletPath = converterX.to_bytes(fileName); // Add collision shape - bulletFile.loadFile("C:\\DV1477\\Git Repository\\Danbias\\Bin\\Content\\Worlds\\cgf\\structure_corporation.bullet"); + bulletFile.loadFile(bulletPath.c_str()); btCollisionShape* collisionShape = bulletFile.getCollisionShapeByIndex(0); body->SetCollisionShape(collisionShape);