PhysicsWorld2D.pkg 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $#include "PhysicsWorld2D.h"
  2. class PhysicsWorld2D : public Component
  3. {
  4. void SetDrawShape(bool drawShape);
  5. void SetDrawJoint(bool drawJoint);
  6. void SetDrawAabb(bool drawAabb);
  7. void SetDrawPair(bool drawPair);
  8. void SetDrawCenterOfMass(bool drawCenterOfMass);
  9. void SetAllowSleeping(bool enable);
  10. void SetWarmStarting(bool enable);
  11. void SetContinuousPhysics(bool enable);
  12. void SetSubStepping(bool enable);
  13. void SetGravity(const Vector2& gravity);
  14. void SetAutoClearForces(bool enable);
  15. void SetVelocityIterations(unsigned velocityIterations);
  16. void SetPositionIterations(unsigned positionIterations);
  17. void DrawDebugGeometry();
  18. bool GetDrawShape() const;
  19. bool GetDrawJoint() const;
  20. bool GetDrawAabb() const;
  21. bool GetDrawPair() const;
  22. bool GetDrawCenterOfMass() const;
  23. bool GetAllowSleeping() const;
  24. bool GetWarmStarting() const;
  25. bool GetContinuousPhysics() const;
  26. bool GetSubStepping() const;
  27. bool GetAutoClearForces() const;
  28. const Vector2& GetGravity() const;
  29. unsigned GetVelocityIterations() const;
  30. unsigned GetPositionIterations() const;
  31. tolua_property__get_set bool drawShape;
  32. tolua_property__get_set bool drawJoint;
  33. tolua_property__get_set bool drawAabb;
  34. tolua_property__get_set bool drawPair;
  35. tolua_property__get_set bool drawCenterOfMass;
  36. tolua_property__get_set bool allowSleeping;
  37. tolua_property__get_set bool warmStarting;
  38. tolua_property__get_set bool continuousPhysics;
  39. tolua_property__get_set bool subStepping;
  40. tolua_property__get_set bool autoClearForces;
  41. tolua_property__get_set Vector2& gravity;
  42. tolua_property__get_set unsigned velocityIterations;
  43. tolua_property__get_set unsigned positionIterations;
  44. };