ConstraintRevolute2D.pkg 955 B

12345678910111213141516171819202122232425262728
  1. $#include "ConstraintRevolute2D.h"
  2. class ConstraintRevolute2D : Constraint2D
  3. {
  4. void SetAnchor(const Vector2& anchor);
  5. void SetEnableLimit(bool enableLimit);
  6. void SetLowerAngle(float lowerAngle);
  7. void SetUpperAngle(float upperAngle);
  8. void SetEnableMotor(bool enableMotor);
  9. void SetMotorSpeed(float motorSpeed);
  10. void SetMaxMotorTorque(float maxMotorTorque);
  11. const Vector2& GetAnchor() const;
  12. bool GetEnableLimit() const;
  13. float GetLowerAngle() const;
  14. float GetUpperAngle() const;
  15. bool GetEnableMotor() const;
  16. float GetMotorSpeed() const;
  17. float GetMaxMotorTorque() const;
  18. tolua_property__get_set Vector2& anchor;
  19. tolua_property__get_set bool enableLimit;
  20. tolua_property__get_set float lowerAngle;
  21. tolua_property__get_set float upperAngle;
  22. tolua_property__get_set bool enableMotor;
  23. tolua_property__get_set float motorSpeed;
  24. tolua_property__get_set float maxMotorTorque;
  25. };