45 int getId()
const {
return id_; }
49 std::string getKind()
const;
51 int getBodyAId()
const;
53 int getBodyBId()
const;
67 void setCollideConnected(
bool collide);
69 bool getCollideConnected()
const;
71 void setForceThreshold(
float threshold);
73 float getForceThreshold()
const;
75 void setTorqueThreshold(
float threshold);
77 float getTorqueThreshold()
const;
80 float getConstraintForceX()
const;
82 float getConstraintForceY()
const;
84 float getConstraintForceZ()
const;
86 float getConstraintTorqueX()
const;
88 float getConstraintTorqueY()
const;
90 float getConstraintTorqueZ()
const;
92 float getLinearSeparation()
const;
94 float getAngularSeparation()
const;
97 void setDistanceLength(
float length);
99 float getDistanceLength()
const;
101 float getDistanceCurrentLength()
const;
112 void setRevoluteLimits(
bool enabled,
float lower,
float upper);
114 void setRevoluteMotor(
bool enabled,
float speed,
float maxTorque);
116 float getRevoluteAngle()
const;
118 float getRevoluteMotorTorque()
const;
121 void setPrismaticSpring(
bool enabled,
float targetTranslation,
float hertz,
124 void setPrismaticLimits(
bool enabled,
float lower,
float upper);
128 float getPrismaticTranslation()
const;
130 float getPrismaticSpeed()
const;
132 float getPrismaticMotorForce()
const;
137 void setSphericalTwistLimits(
bool enabled,
float lower,
float upper);
139 void setSphericalMotor(
bool enabled,
float velocityX,
float velocityY,
float velocityZ,
142 float getSphericalConeAngle()
const;
144 float getSphericalTwistAngle()
const;
149 void setWheelSuspensionLimits(
bool enabled,
float lower,
float upper);
151 void setWheelSpinMotor(
bool enabled,
float speed,
float maxTorque);
156 void setWheelSteeringLimits(
bool enabled,
float lower,
float upper);
158 float getWheelSpinSpeed()
const;
160 float getWheelSpinTorque()
const;
162 float getWheelSteeringAngle()
const;
164 float getWheelSteeringTorque()
const;
167 void setWeldLinearSpring(
float hertz,
float dampingRatio);
169 void setWeldAngularSpring(
float hertz,
float dampingRatio);
171 float getWeldLinearHertz()
const;
173 float getWeldLinearDampingRatio()
const;
175 float getWeldAngularHertz()
const;
177 float getWeldAngularDampingRatio()
const;
180 void setMotorLinearVelocity(
float vx,
float vy,
float vz);
182 void setMotorAngularVelocity(
float wx,
float wy,
float wz);
184 void setMotorVelocityLimits(
float maxForce,
float maxTorque);
188 void setMotorAngularSpring(
float hertz,
float dampingRatio,
float maxTorque);
190 float getMotorLinearVelocityX()
const;
192 float getMotorLinearVelocityY()
const;
194 float getMotorLinearVelocityZ()
const;
196 float getMotorAngularVelocityX()
const;
198 float getMotorAngularVelocityY()
const;
200 float getMotorAngularVelocityZ()
const;
203 void setParallelSpring(
float hertz,
float dampingRatio,
float maxTorque);
205 float getParallelHertz()
const;
207 float getParallelDampingRatio()
const;
209 float getParallelMaxTorque()
const;
214 bool isValid()
const;
229 std::unique_ptr<IJointBackend3D> backend_{};
231 Kind kind_ = Kind::Distance;
Backend-neutral 3D rigid body in meter-space coordinates (+Y up by convention). Owned by a World3D; c...