Browse Source

test: fix Bullet/Lol quaternion conversions, they use [x y z w] whereas we use

the mathematician-friendly [w x y z].
legacy
Sam Hocevar sam 12 years ago
parent
commit
333f34e09e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      test/Physics/LolBtPhysicsIntegration.h

+ 2
- 2
test/Physics/LolBtPhysicsIntegration.h View File

@@ -29,8 +29,8 @@ namespace lol
#define LOL2BT_VEC3(ELEMENT) (*(btVector3*)(&(ELEMENT)))
#define BT2LOL_VEC3(ELEMENT) (*(lol::vec3*)(&(ELEMENT)))

#define LOL2BT_QUAT(ELEMENT) (*(btQuaternion*)(&(ELEMENT)))
#define BT2LOL_QUAT(ELEMENT) (*(lol::quat*)(&(ELEMENT)))
#define LOL2BT_QUAT(ELEMENT) btQuaternion((ELEMENT).x, (ELEMENT).y, (ELEMENT).z, (ELEMENT).w)
#define BT2LOL_QUAT(ELEMENT) lol::quat((ELEMENT).getW(), BT2LOL_VEC3((ELEMENT).getAxis())

} /* namespace lol */



Loading…
Cancel
Save