ConstraintPrismatic2D.pkg 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. $#include "ConstraintPrismatic2D.h"
  2. class ConstraintPrismatic2D : Constraint2D
  3. {
  4. void SetAnchor(const Vector2& anchor);
  5. void SetAxis(const Vector2& axis);
  6. void SetEnableLimit(bool enableLimit);
  7. void SetLowerTranslation(float lowerTranslation);
  8. void SetUpperTranslation(float upperTranslation);
  9. void SetEnableMotor(bool enableMotor);
  10. void SetMaxMotorForce(float maxMotorForce);
  11. void SetMotorSpeed(float motorSpeed);
  12. const Vector2& GetAnchor() const;
  13. const Vector2& GetAxis() const;
  14. bool GetEnableLimit() const;
  15. float GetLowerTranslation() const;
  16. float GetUpperTranslation() const;
  17. bool GetEnableMotor() const;
  18. float GetMaxMotorForce() const;
  19. float GetMotorSpeed() const;
  20. tolua_property__get_set Vector2& anchor;
  21. tolua_property__get_set Vector2& axis;
  22. tolua_property__get_set bool enableLimit;
  23. tolua_property__get_set float lowerTranslation;
  24. tolua_property__get_set float upperTranslation;
  25. tolua_property__get_set bool enableMotor;
  26. tolua_property__get_set float maxMotorForce;
  27. tolua_property__get_set float motorSpeed;
  28. };