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