33 #include "../../api_physics2d.h"
34 #include "../../../Core/Math/vec2.h"
44 class PrismaticJointDescription_Impl;
72 void throw_if_null()
const;
75 bool is_active()
const;
98 void set_bodies(
const Body &bodyA,
const Body &bodyB,
const Vec2f &anchorA,
const Vec2f &anchorB);
104 void set_body_a(
const Body &body,
const Vec2f &anchor);
110 void set_body_b(
const Body &body,
const Vec2f &anchor);
115 void set_axis_a(
const Vec2f &axis);
120 void set_reference_angle(
const Angle &angle);
123 void enable_limit(
const bool value =
true);
126 void set_translation_limits(
const float min,
const float max);
129 void set_translation_min(
const float value);
132 void set_translation_max(
const float value);
135 void set_as_motor(
const bool value =
true);
138 void set_max_motor_force(
const float value);
141 void set_motor_speed(
const Angle &angle);
148 std::shared_ptr<PrismaticJointDescription_Impl>
impl;
Angle class.
Definition: angle.h:63
A min(A a, B b)
Definition: cl_math.h:51
std::shared_ptr< PrismaticJointDescription_Impl > impl
Definition: prismatic_joint_description.h:148
Top-level world class.
Definition: physics_world.h:52
A max(A a, B b)
Definition: cl_math.h:52
PrismaticJointDescription class.
Definition: prismatic_joint_description.h:47
Body class.
Definition: body.h:52
bool is_null() const
Returns true if this object is invalid.
Definition: prismatic_joint_description.h:69
PrismaticJoint class.
Definition: prismatic_joint.h:47