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

Linear limits of a joint. More...

#include <GREM/physics/joints.hpp>

Public Member Functions

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

Public Attributes

LinearVelocity< N > driveTargetVelocities {}
 Target velocity of the drive along each local axis of the first connected object's attachment frame.
Force< N > driveMaxForces {}
 Maximum force applied by the drive to reach the target velocity along each local axis of the first connected object's attachment frame.
Length< N > minOffsets = Length<N>::MIN
 Minimum signed distance of the attachment frame points along each local axis of the first connected object's attachment frame.
Length< N > maxOffsets = Length<N>::MAX
 Maximum signed distance of the attachment frame points along each local axis of the first connected object's attachment frame.
Rate< N > limitStiffnesses {DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS}
 Stiffness of the constraint limits for each axis.
Quantity< N, Unitless > limitDampingRatios {DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO}
 Damping ratio used when solving the constraint limits for each axis.

Detailed Description

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

Linear limits 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::JointLinearConstraint< N >::operator== ( const JointLinearConstraint< 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

◆ driveTargetVelocities

template<size_t N>
LinearVelocity<N> grem::physics::JointLinearConstraint< N >::driveTargetVelocities {}

Target velocity of the drive along each local axis of the first connected object's attachment frame.

◆ driveMaxForces

template<size_t N>
Force<N> grem::physics::JointLinearConstraint< N >::driveMaxForces {}

Maximum force applied by the drive to reach the target velocity along each local axis of the first connected object's attachment frame.

◆ minOffsets

template<size_t N>
Length<N> grem::physics::JointLinearConstraint< N >::minOffsets = Length<N>::MIN

Minimum signed distance of the attachment frame points along each local axis of the first connected object's attachment frame.

Each component must be less than or equal to the corresponding component of maxOffsets.

◆ maxOffsets

template<size_t N>
Length<N> grem::physics::JointLinearConstraint< N >::maxOffsets = Length<N>::MAX

Maximum signed distance of the attachment frame points along each local axis of the first connected object's attachment frame.

Each component must be greater than or equal to the corresponding component of minOffsets.

◆ limitStiffnesses

template<size_t N>
Rate<N> grem::physics::JointLinearConstraint< N >::limitStiffnesses {DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS}

Stiffness of the constraint limits for each axis.

Each component must be non-negative.

◆ limitDampingRatios

template<size_t N>
Quantity<N, Unitless> grem::physics::JointLinearConstraint< N >::limitDampingRatios {DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO}

Damping ratio used when solving the constraint limits for each axis.

Each component must be positive.


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