Changeset 1595


Ignore:
Timestamp:
Jul 8, 2012, 7:17:40 PM (8 years ago)
Author:
touky
Message:

CIS FIX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Physics/EasyPhysics.cpp

    r1591 r1595  
    6565void EasyPhysics::SetShapeToBox(lol::vec3& box_size)
    6666{
    67         SetShapeTo(new btBoxShape(LOL2BT_VEC3(box_size * LOL2BT_UNIT * LOL2BT_SIZE)));
     67        vec3 new_box_size = box_size * LOL2BT_UNIT * LOL2BT_SIZE;
     68        SetShapeTo(new btBoxShape(LOL2BT_VEC3(new_box_size)));
    6869}
     70
     71//void EasyPhysics::SetShapeToSphere(lol::vec3& box_size)
     72//{
     73//      SetShapeTo(new btBoxShape(LOL2BT_VEC3(box_size * LOL2BT_UNIT * LOL2BT_SIZE)));
     74//}
    6975
    7076//-------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.