No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

LolBtPhysicsIntegration.h 993 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2012 Sam Hocevar <sam@hocevar.net>
  5. // (c) 2009-2012 Benjamin Huet <huet.benjamin@gmail.com>
  6. // This program is free software; you can redistribute it and/or
  7. // modify it under the terms of the Do What The Fuck You Want To
  8. // Public License, Version 2, as published by Sam Hocevar. See
  9. // http://sam.zoy.org/projects/COPYING.WTFPL for more details.
  10. //
  11. //
  12. // Bullet Physics integration in Lol
  13. // ------------------
  14. //
  15. #if !defined __LOLBTPHYSICSINTEGRATION_H__
  16. #define __LOLBTPHYSICSINTEGRATION_H__
  17. namespace lol
  18. {
  19. #define LOL2BT_UNIT 1.0f
  20. #define BT2LOL_UNIT 1.0f
  21. #define LOL2BT_SIZE 0.5f
  22. #define BT2LOL_SIZE 2.0f
  23. #define LOL2BT_VEC3(ELEMENT) (*(btVector3*)(&(ELEMENT)))
  24. #define BT2LOL_VEC3(ELEMENT) (*(lol::vec3*)(&(ELEMENT)))
  25. #define LOL2BT_QUAT(ELEMENT) (*(btQuaternion*)(&(ELEMENT)))
  26. #define BT2LOL_QUAT(ELEMENT) (*(lol::quat*)(&(ELEMENT)))
  27. } /* namespace lol */
  28. #endif /* __LOLBTPHYSICSINTEGRATION_H__ */