You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

56 lines
1.3 KiB

  1. //
  2. // BtPhysTest
  3. //
  4. // Copyright: (c) 2009-2013 Benjamin "Touky" 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. enum
  20. {
  21. KEY_MOVE_FORWARD,
  22. KEY_MOVE_BACK,
  23. KEY_MOVE_LEFT,
  24. KEY_MOVE_RIGHT,
  25. KEY_MOVE_UP,
  26. KEY_MOVE_DOWN,
  27. KEY_MOVE_JUMP,
  28. KEY_QUIT,
  29. KEY_MAX,
  30. };
  31. Camera* m_camera;
  32. Controller * m_controller;
  33. Light * m_light1;
  34. Light * m_light2;
  35. bool m_ready;
  36. lol::phys::Simulation* m_simulation;
  37. Array<EasyConstraint*> m_constraint_list;
  38. Array<PhysicsObject*> m_physobj_list;
  39. Array<PhysicsObject*> m_ground_list;
  40. Array<PhysicsObject*> m_platform_list;
  41. Array<PhysicsObject*> m_character_list;
  42. Array<PhysicsObject*> m_stairs_list;
  43. float m_loop_value;
  44. };
  45. #endif // __BTPHYSTEST_H__