GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::JointDistanceConstraint< N > Struct Template Reference

Distance limit of a joint. More...

#include <GREM/physics/joints.hpp>

Public Member Functions

constexpr bool operator== (const JointDistanceConstraint &other) const noexcept=default
 Compare this constraint to another constraint for equality.

Public Attributes

LinearVelocity1D driveTargetVelocity {}
 Target velocity of the drive.
Force1D driveMaxForce {}
 Maximum force applied by the drive to reach the target velocity.
Distance minDistance {}
 Minimum distance between the attachment frame points.
Distance maxDistance = Distance::MAX
 Maximum signed distance of the attachment frame points.
Frequency limitStiffness = DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS
 Stiffness of the constraint limits.
Coefficient limitDampingRatio = DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO
 Damping ratio used when solving the constraint limits.

Detailed Description

template<size_t N>
struct grem::physics::JointDistanceConstraint< N >

Distance limit of a joint.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

Member Function Documentation

◆ operator==()

template<size_t N>
bool grem::physics::JointDistanceConstraint< N >::operator== ( const JointDistanceConstraint< N > & other) const
nodiscardconstexprdefaultnoexcept

Compare this constraint to another constraint for equality.

Parameters
otherconstraint to compare against.
Returns
true if the constraints are equal, false otherwise.

Member Data Documentation

◆ driveTargetVelocity

template<size_t N>
LinearVelocity1D grem::physics::JointDistanceConstraint< N >::driveTargetVelocity {}

Target velocity of the drive.

◆ driveMaxForce

template<size_t N>
Force1D grem::physics::JointDistanceConstraint< N >::driveMaxForce {}

Maximum force applied by the drive to reach the target velocity.

◆ minDistance

template<size_t N>
Distance grem::physics::JointDistanceConstraint< N >::minDistance {}

Minimum distance between the attachment frame points.

Must be non-negative. Must be less than or equal to maxDistance.

◆ maxDistance

template<size_t N>
Distance grem::physics::JointDistanceConstraint< N >::maxDistance = Distance::MAX

Maximum signed distance of the attachment frame points.

Must be non-negative. Must be greater than or equal to minDistance.

◆ limitStiffness

Stiffness of the constraint limits.

Must be non-negative.

◆ limitDampingRatio

Damping ratio used when solving the constraint limits.

Must be positive.


The documentation for this struct was generated from the following file: