Explorar el Código

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 hace 12 años
padre
commit
333f34e09e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      test/Physics/LolBtPhysicsIntegration.h

+ 2
- 2
test/Physics/LolBtPhysicsIntegration.h Ver fichero

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



Cargando…
Cancelar
Guardar