|
(Note that these are not member functions.)
|
constexpr Momentum2 | GetLinearReaction (const RopeJointConf &object) noexcept |
| Gets the current linear reaction of the given configuration.
|
|
constexpr AngularMomentum | GetAngularReaction (const RopeJointConf &) noexcept |
| Gets the current angular reaction of the given configuration.
|
|
constexpr auto | ShiftOrigin (RopeJointConf &, Length2) noexcept |
| Shifts the origin notion of the given configuration.
|
|
void | InitVelocity (RopeJointConf &object, std::vector< BodyConstraint > &bodies, const StepConf &step, const ConstraintSolverConf &conf) |
| Initializes velocity constraint data based on the given solver data. More...
|
|
bool | SolveVelocity (RopeJointConf &object, std::vector< BodyConstraint > &bodies, const StepConf &step) |
| Solves velocity constraint. More...
|
|
bool | SolvePosition (const RopeJointConf &object, std::vector< BodyConstraint > &bodies, const ConstraintSolverConf &conf) |
| Solves the position constraint. More...
|
|
constexpr auto | GetMaxLength (const RopeJointConf &object) noexcept |
| Free function for getting the maximum length value of the given configuration.
|
|
constexpr auto | SetMaxLength (RopeJointConf &object, Length value) noexcept |
| Free function for setting the maximum length value of the given configuration.
|
|
void | Set (JointConf &def, const Joint &joint) noexcept |
| Sets the joint definition data for the given joint.
|
|
Rope joint definition.
A rope joint enforces a maximum distance between two points on two bodies. It has no other effect. This requires two body anchor points and a maximum lengths.
- Note
- By default the connected objects will not collide.
- Warning
- If you attempt to change the maximum length during the simulation you will get some non-physical behavior. A model that would allow you to dynamically modify the length would have some sponginess, so it was decided not to implement it that way. See
DistanceJoint
if you want to dynamically control length.
- See also
- collideConnected in JointConf.
-
Joint, World::CreateJoint
- Examples
- RopeJoint.cpp, and World.cpp.