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

Angular limits of a joint. More...

#include <GREM/physics/joints.hpp>

Public Member Functions

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

Public Attributes

AngularVelocity< N > driveTargetVelocities {}
 Target velocity of the drive around each local axis of the first connected object's attachment frame.
Torque< N > driveMaxTorques {}
 Maximum torque applied by the drive to reach the target velocity around each local axis of the first connected object's attachment frame.
Rotation< N > minAngles = Rotation<N>::MIN
 Minimum angle of the attachment frames around each local axis of the first connected object's attachment frame.
Rotation< N > maxAngles = Rotation<N>::MAX
 Maximum angle of the attachment frames around each local axis of the first connected object's attachment frame.
AngularFrequency< N > limitStiffnesses {DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS}
 Stiffness of the constraint limits for each axis.
AngularScale< N > limitDampingRatios {DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO}
 Damping ratio used when solving the constraint limits for each axis.

Detailed Description

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

Angular 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::JointAngularConstraint< N >::operator== ( const JointAngularConstraint< 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>
AngularVelocity<N> grem::physics::JointAngularConstraint< N >::driveTargetVelocities {}

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

◆ driveMaxTorques

template<size_t N>
Torque<N> grem::physics::JointAngularConstraint< N >::driveMaxTorques {}

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

◆ minAngles

template<size_t N>
Rotation<N> grem::physics::JointAngularConstraint< N >::minAngles = Rotation<N>::MIN

Minimum angle of the attachment frames around each local axis of the first connected object's attachment frame.

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

◆ maxAngles

template<size_t N>
Rotation<N> grem::physics::JointAngularConstraint< N >::maxAngles = Rotation<N>::MAX

Maximum angle of the attachment frames around each local axis of the first connected object's attachment frame.

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

◆ limitStiffnesses

Stiffness of the constraint limits for each axis.

Each component must be non-negative.

◆ limitDampingRatios

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: