|
(Note that these are not member functions.)
|
constexpr Momentum2 | GetLinearReaction (const GearJointConf &object) |
| Gets the current linear reaction for the given configuration.
|
|
constexpr AngularMomentum | GetAngularReaction (const GearJointConf &object) |
| Gets the current angular reaction for the given configuration.
|
|
constexpr bool | ShiftOrigin (GearJointConf &, Length2) noexcept |
| Shifts the origin notion of the given configuration.
|
|
void | InitVelocity (GearJointConf &object, std::vector< BodyConstraint > &bodies, const StepConf &step, const ConstraintSolverConf &conf) |
| Initializes velocity constraint data based on the given solver data. More...
|
|
bool | SolveVelocity (GearJointConf &object, std::vector< BodyConstraint > &bodies, const StepConf &step) |
| Solves velocity constraint. More...
|
|
bool | SolvePosition (const GearJointConf &object, std::vector< BodyConstraint > &bodies, const ConstraintSolverConf &conf) |
| Solves the position constraint. More...
|
|
constexpr auto | GetRatio (const GearJointConf &object) noexcept |
| Free function for getting the ratio value of the given configuration.
|
|
constexpr auto | SetRatio (GearJointConf &object, Real value) noexcept |
| Free function for setting the ratio value of the given configuration.
|
|
constexpr auto | GetConstant (const GearJointConf &object) noexcept |
| Free function for getting the constant value of the given configuration.
|
|
constexpr auto | GetType1 (const GearJointConf &object) noexcept |
| Free function for getting joint 1 type value of the given configuration.
|
|
constexpr auto | GetType2 (const GearJointConf &object) noexcept |
| Free function for getting joint 2 type value of the given configuration.
|
|
void | Set (JointConf &def, const Joint &joint) noexcept |
| Sets the joint definition data for the given joint.
|
|
Gear joint definition.
A gear joint is used to connect two joints together. Either joint can be a revolute or prismatic joint. You specify a gear ratio to bind the motions together: coordinate1 + ratio * coordinate2 = constant
. The ratio can be negative or positive. If one joint is a revolute joint and the other joint is a prismatic joint, then the ratio will have units of length or units of 1/length.
- Warning
- You have to manually destroy the gear joint if joint-1 or joint-2 is destroyed.
- See also
- Joint, World::CreateJoint
- Examples
- GearJoint.cpp.