ConstraintWheel2D.pkg 957 B

12345678910111213141516171819202122232425262728
  1. $#include "ConstraintWheel2D.h"
  2. class ConstraintWheel2D : Constraint2D
  3. {
  4. void SetAnchor(const Vector2& anchor);
  5. void SetAxis(const Vector2& axis);
  6. void SetEnableMotor(bool enableMotor);
  7. void SetMaxMotorTorque(float maxMotorTorque);
  8. void SetMotorSpeed(float motorSpeed);
  9. void SetFrequencyHz(float frequencyHz);
  10. void SetDampingRatio(float dampingRatio);
  11. const Vector2& GetAnchor() const;
  12. const Vector2& GetAxis() const;
  13. bool GetEnableMotor() const;
  14. float GetMaxMotorTorque() const;
  15. float GetMotorSpeed() const;
  16. float GetFrequencyHz() const;
  17. float GetDampingRatio() const;
  18. tolua_property__get_set Vector2& anchor;
  19. tolua_property__get_set Vector2& axis;
  20. tolua_property__get_set bool enableMotor;
  21. tolua_property__get_set float maxMotorTorque;
  22. tolua_property__get_set float motorSpeed;
  23. tolua_property__get_set float frequencyHz;
  24. tolua_property__get_set float dampingRatio;
  25. };