Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

BtPhysTest.h 1.3 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. Array<PhysicsObject*> m_character_list;
  27. #if 0
  28. EasyMesh m_ground_mesh;
  29. EasyMesh m_rigid_mesh[6];
  30. //Bullet Physics Datas
  31. enum
  32. {
  33. USE_CCD=1,
  34. USE_NO_CCD
  35. };
  36. int m_bt_ccd_mode;
  37. btDefaultCollisionConfiguration* m_bt_collision_config;
  38. btCollisionDispatcher* m_bt_dispatcher;
  39. btDbvtBroadphase* m_bt_broadphase;
  40. btSequentialImpulseConstraintSolver* m_bt_solver;
  41. btDiscreteDynamicsWorld* m_bt_world;
  42. Array<btCollisionShape*> m_bt_collision_shapes;
  43. Array<btCollisionShape*> m_bt_dynamic_shapes;
  44. #endif
  45. };
  46. #endif // __BTPHYSTEST_H__