Explorar el Código

CIS FIX

legacy
Benjamin ‘Touky’ Huet touky hace 12 años
padre
commit
b37dfcabf8
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. +7
    -1
      test/Physics/EasyPhysics.cpp

+ 7
- 1
test/Physics/EasyPhysics.cpp Ver fichero

@@ -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
//--


Cargando…
Cancelar
Guardar