33 #include "../../api_physics2d.h"
34 #include "../../../Core/Math/vec2.h"
44 class RevoluteJointDescription_Impl;
72 void throw_if_null()
const;
75 bool is_active()
const;
77 bool is_motor()
const;
79 float get_motor_speed()
const;
81 Angle get_reference_angle()
const;
83 Angle get_lower_angle()
const;
85 Angle get_upper_angle()
const;
107 void set_bodies(
const Body &bodyA,
const Body &bodyB,
const Vec2f &anchor);
113 void set_body_a(
const Body &body,
const Vec2f &anchor);
119 void set_body_b(
const Body &body,
const Vec2f &anchor);
122 void set_as_motor(
const bool value =
true);
125 void set_motor_speed(
const Angle speed);
128 void set_reference_angle(
const Angle angle);
131 void set_max_motor_torque(
const float value);
134 void set_angle_limit(
const Angle lower,
const Angle upper);
137 void set_lower_angle(
const Angle angle);
140 void set_upper_angle(
const Angle angle);
147 std::shared_ptr<RevoluteJointDescription_Impl>
impl;
Angle class.
Definition: angle.h:63
std::shared_ptr< RevoluteJointDescription_Impl > impl
Definition: revolute_joint_description.h:147
Top-level world class.
Definition: physics_world.h:52
Body class.
Definition: body.h:52
RevoluteJointDescription class.
Definition: revolute_joint_description.h:47
bool is_null() const
Returns true if this object is invalid.
Definition: revolute_joint_description.h:69
RevoluteJoint class.
Definition: revolute_joint.h:47