Friction joint definition.
More...
#include <FrictionJointConf.hpp>
|
(Note that these are not member functions.)
|
constexpr Momentum2 | GetLinearReaction (const FrictionJointConf &object) noexcept |
| Gets the current linear reaction for the given configuration.
|
|
constexpr AngularMomentum | GetAngularReaction (const FrictionJointConf &object) noexcept |
| Gets the current angular reaction for the given configuration.
|
|
constexpr bool | ShiftOrigin (FrictionJointConf &, Length2) noexcept |
| Shifts the origin notion of the given configuration.
|
|
void | InitVelocity (FrictionJointConf &object, std::vector< BodyConstraint > &bodies, const StepConf &step, const ConstraintSolverConf &conf) |
| Initializes velocity constraint data based on the given solver data. More...
|
|
bool | SolveVelocity (FrictionJointConf &object, std::vector< BodyConstraint > &bodies, const StepConf &step) |
| Solves velocity constraint. More...
|
|
bool | SolvePosition (const FrictionJointConf &object, std::vector< BodyConstraint > &bodies, const ConstraintSolverConf &conf) |
| Solves the position constraint. More...
|
|
constexpr auto | GetMaxForce (const FrictionJointConf &object) noexcept |
| Free function for getting the max force value of the given configuration.
|
|
constexpr void | SetMaxForce (FrictionJointConf &object, NonNegative< Force > value) noexcept |
| Free function for setting the max force value of the given configuration.
|
|
constexpr auto | GetMaxTorque (const FrictionJointConf &object) noexcept |
| Free function for getting the max torque value of the given configuration.
|
|
constexpr auto | SetMaxTorque (FrictionJointConf &object, NonNegative< Torque > value) noexcept |
| Free function for setting the max force value of the given configuration.
|
|
void | Set (JointConf &def, const Joint &joint) noexcept |
| Sets the joint definition data for the given joint.
|
|
Friction joint definition.
This is used for top-down friction. It provides 2-D translational friction and angular friction.
- See also
- Joint, World::CreateJoint
- Examples
- FrictionJoint.cpp, and World.cpp.
◆ FrictionJointConf()
Initializing constructor.
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
◆ InitVelocity()
Initializes velocity constraint data based on the given solver data.
- Note
- This MUST be called prior to calling
SolveVelocity
.
- See also
- SolveVelocity.
◆ SolvePosition()
Solves the position constraint.
- Returns
true
if the position errors are within tolerance.
◆ SolveVelocity()
Solves velocity constraint.
- Precondition
InitVelocity
has been called.
- See also
- InitVelocity.
- Returns
true
if velocity is "solved", false
otherwise.
The documentation for this struct was generated from the following files:
- FrictionJointConf.hpp
- FrictionJointConf.cpp