25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nacl_phystest.h 1.6 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #pragma once
  8. class Nacl_PhysTest : public WorldEntity
  9. {
  10. public:
  11. Nacl_PhysTest(bool editor = false);
  12. virtual ~Nacl_PhysTest();
  13. char const *GetName() { return "<Nacl_PhysTest>"; }
  14. protected:
  15. virtual void TickGame(float seconds);
  16. virtual void TickDraw(float seconds, Scene &scene);
  17. private:
  18. enum
  19. {
  20. KEY_MOVE_FORWARD,
  21. KEY_MOVE_BACK,
  22. KEY_MOVE_LEFT,
  23. KEY_MOVE_RIGHT,
  24. KEY_MOVE_UP,
  25. KEY_MOVE_DOWN,
  26. KEY_MOVE_JUMP,
  27. KEY_QUIT,
  28. KEY_MAX,
  29. };
  30. TileSet* m_cat_texture;
  31. Shader* m_cat_shader;
  32. Camera* m_camera;
  33. Controller * m_controller;
  34. Light * m_light1;
  35. Light * m_light2;
  36. bool m_ready;
  37. //lol::phys::Simulation* m_simulation;
  38. //array<EasyConstraint*> m_constraint_list;
  39. //array<PhysicsObject*, float> m_physobj_list;
  40. //array<PhysicsObject*> m_ground_list;
  41. //array<PhysicsObject*> m_platform_list;
  42. //array<PhysicsObject*> m_character_list;
  43. //array<PhysicsObject*> m_stairs_list;
  44. float m_loop_value;
  45. float m_target_timer;
  46. int m_cam_target;
  47. float m_fov_dp;
  48. float m_loc_dp;
  49. };