Fixed the damn path

This commit is contained in:
Robin Engman 2014-02-26 14:08:49 +01:00 committed by Dander7BD
parent d81a1c204c
commit 30c425f8fa
1 changed files with 2 additions and 2 deletions

View File

@ -234,10 +234,10 @@ ICustomBody* API_Impl::AddTriangleMesh(const std::wstring fileName, ::Oyster::Ma
typedef std::codecvt_utf8<wchar_t> convert_typeX; typedef std::codecvt_utf8<wchar_t> convert_typeX;
std::wstring_convert<convert_typeX, wchar_t> converterX; std::wstring_convert<convert_typeX, wchar_t> converterX;
//std::string bulletPath = converterX.to_bytes(); std::string bulletPath = converterX.to_bytes(fileName);
// Add collision shape // 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); btCollisionShape* collisionShape = bulletFile.getCollisionShapeByIndex(0);
body->SetCollisionShape(collisionShape); body->SetCollisionShape(collisionShape);