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.

40 lines
1.0 KiB

  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. Array<PhysicsObject*> m_stairs_list;
  28. float m_loop_value;
  29. };
  30. #endif // __BTPHYSTEST_H__