Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

BtPhysTest.h 1.3 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // BtPhysTest
  3. //
  4. // Copyright: (c) 2009-2012 Benjamin Huet <huet.benjamin@gmail.com>
  5. // (c) 2012 Sam Hocevar <sam@hocevar.net>
  6. //
  7. #if !defined __BTPHYSTEST_H__
  8. #define __BTPHYSTEST_H__
  9. class BtPhysTest : public WorldEntity
  10. {
  11. public:
  12. BtPhysTest(bool editor = false);
  13. virtual ~BtPhysTest();
  14. char const *GetName() { return "<BtPhysTest>"; }
  15. protected:
  16. virtual void TickGame(float seconds);
  17. virtual void TickDraw(float seconds);
  18. private:
  19. Camera* m_camera;
  20. bool m_ready;
  21. lol::phys::Simulation* m_simulation;
  22. Array<EasyConstraint*> m_constraint_list;
  23. Array<PhysicsObject*> m_physobj_list;
  24. Array<PhysicsObject*> m_ground_list;
  25. Array<PhysicsObject*> m_platform_list;
  26. #if 0
  27. EasyMesh m_ground_mesh;
  28. EasyMesh m_rigid_mesh[6];
  29. //Bullet Physics Datas
  30. enum
  31. {
  32. USE_CCD=1,
  33. USE_NO_CCD
  34. };
  35. int m_bt_ccd_mode;
  36. btDefaultCollisionConfiguration* m_bt_collision_config;
  37. btCollisionDispatcher* m_bt_dispatcher;
  38. btDbvtBroadphase* m_bt_broadphase;
  39. btSequentialImpulseConstraintSolver* m_bt_solver;
  40. btDiscreteDynamicsWorld* m_bt_world;
  41. Array<btCollisionShape*> m_bt_collision_shapes;
  42. Array<btCollisionShape*> m_bt_dynamic_shapes;
  43. #endif
  44. };
  45. #endif // __BTPHYSTEST_H__