Changeset 1614


Ignore:
Timestamp:
Jul 9, 2012, 3:35:27 PM (8 years ago)
Author:
sam
Message:

test: fix an alignment issue with btVector3/vec3 casts.

Location:
trunk/test/Physics
Files:
2 edited

Legend:

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

    r1613 r1614  
    130130        {
    131131                SetLocalInertia(m_mass);
    132                 m_rigid_body->setMassProps(mass, LOL2BT_VEC3(m_local_inertia));
     132                m_rigid_body->setMassProps(mass, m_local_inertia);
    133133        }
    134134}
  • trunk/test/Physics/LolBtPhysicsIntegration.h

    r1611 r1614  
    2727#define BT2LOL_SIZE                             2.0f
    2828
    29 #define LOL2BT_VEC3(ELEMENT)    (*(btVector3*)(&(ELEMENT)))
     29#define LOL2BT_VEC3(ELEMENT)    btVector3((ELEMENT).x, (ELEMENT).y, (ELEMENT).z)
    3030#define BT2LOL_VEC3(ELEMENT)    (*(lol::vec3*)(&(ELEMENT)))
    3131
Note: See TracChangeset for help on using the changeset viewer.