25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

BtPhysTest.h 1.2 KiB

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