瀏覽代碼

CIS FIX

legacy
Benjamin ‘Touky’ Huet touky 12 年之前
父節點
當前提交
b37dfcabf8
共有 1 個檔案被更改,包括 7 行新增1 行删除
  1. +7
    -1
      test/Physics/EasyPhysics.cpp

+ 7
- 1
test/Physics/EasyPhysics.cpp 查看文件

@@ -64,9 +64,15 @@ void EasyPhysics::SetShapeTo(btCollisionShape* collision_shape)
//Box Shape support
void EasyPhysics::SetShapeToBox(lol::vec3& box_size)
{
SetShapeTo(new btBoxShape(LOL2BT_VEC3(box_size * LOL2BT_UNIT * LOL2BT_SIZE)));
vec3 new_box_size = box_size * LOL2BT_UNIT * LOL2BT_SIZE;
SetShapeTo(new btBoxShape(LOL2BT_VEC3(new_box_size)));
}

//void EasyPhysics::SetShapeToSphere(lol::vec3& box_size)
//{
// SetShapeTo(new btBoxShape(LOL2BT_VEC3(box_size * LOL2BT_UNIT * LOL2BT_SIZE)));
//}

//-------------------------------------------------------------------------
//Base Location/Rotation setup
//--


Loading…
取消
儲存