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

Configuration options for a revolute joint. More...

#include <GREM/physics/joints.hpp>

Public Member Functions

constexpr bool operator== (const HingeJointOptions &other) const noexcept=default
 Compare these options to another set of options for equality.

Public Attributes

Pair< Length< N > > attachmentOffsets {}
 Local offsets of the attachment frames of the connected objects.
Pair< Orientation< N > > attachmentOrientations {}
 Local orientations of the attachment frames of the connected objects.
Frequency linearAttachmentStiffness = DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS
 Stiffness of the hinge when the attachment frame points are separated.
Coefficient linearAttachmentDampingRatio = DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO
 Damping ratio of the hinge when the attachment frame points are separated.
Frequency angularAttachmentStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS
 Stiffness of the hinge when the attachment frame directions are separated.
Coefficient angularAttachmentDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO
 Damping ratio of the hinge when the attachment frame directions are separated.
AngularVelocity2D driveTargetVelocity {}
 Target velocity of the drive.
Torque2D driveMaxTorque {}
 Maximum torque applied by the drive.
Angle minAngle = Angle::MIN
 Minimum angle of the hinge.
Angle maxAngle = Angle::MAX
 Maximum angle of the hinge.
Frequency angularLimitStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS
 Stiffness of the hinge when extended beyond minAngle/maxAngle.
Coefficient angularLimitDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO
 Damping ratio of the hinge when extended beyond minAngle/maxAngle.
JointFlags< N > flags {}
 Boolean properties of the joint.

Detailed Description

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

Configuration options for a revolute 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::HingeJointOptions< N >::operator== ( const HingeJointOptions< N > & other) const
nodiscardconstexprdefaultnoexcept

Compare these options to another set of options for equality.

Parameters
otherthe options to compare these to.
Returns
true if the options are equal, false otherwise.

Member Data Documentation

◆ attachmentOffsets

template<size_t N>
Pair<Length<N> > grem::physics::HingeJointOptions< N >::attachmentOffsets {}

Local offsets of the attachment frames of the connected objects.

◆ attachmentOrientations

template<size_t N>
Pair<Orientation<N> > grem::physics::HingeJointOptions< N >::attachmentOrientations {}

Local orientations of the attachment frames of the connected objects.

◆ linearAttachmentStiffness

template<size_t N>
Frequency grem::physics::HingeJointOptions< N >::linearAttachmentStiffness = DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS

Stiffness of the hinge when the attachment frame points are separated.

Must be non-negative.

◆ linearAttachmentDampingRatio

template<size_t N>
Coefficient grem::physics::HingeJointOptions< N >::linearAttachmentDampingRatio = DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO

Damping ratio of the hinge when the attachment frame points are separated.

Must be positive.

◆ angularAttachmentStiffness

template<size_t N>
Frequency grem::physics::HingeJointOptions< N >::angularAttachmentStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS

Stiffness of the hinge when the attachment frame directions are separated.

Must be non-negative.

◆ angularAttachmentDampingRatio

template<size_t N>
Coefficient grem::physics::HingeJointOptions< N >::angularAttachmentDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO

Damping ratio of the hinge when the attachment frame directions are separated.

Must be positive.

◆ driveTargetVelocity

template<size_t N>
AngularVelocity2D grem::physics::HingeJointOptions< N >::driveTargetVelocity {}

Target velocity of the drive.

◆ driveMaxTorque

template<size_t N>
Torque2D grem::physics::HingeJointOptions< N >::driveMaxTorque {}

Maximum torque applied by the drive.

◆ minAngle

template<size_t N>
Angle grem::physics::HingeJointOptions< N >::minAngle = Angle::MIN

Minimum angle of the hinge.

Must be less than or equal to maxAngle.

◆ maxAngle

template<size_t N>
Angle grem::physics::HingeJointOptions< N >::maxAngle = Angle::MAX

Maximum angle of the hinge.

Must be greater than or equal to minAngle.

◆ angularLimitStiffness

template<size_t N>
Frequency grem::physics::HingeJointOptions< N >::angularLimitStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS

Stiffness of the hinge when extended beyond minAngle/maxAngle.

Must be non-negative.

◆ angularLimitDampingRatio

template<size_t N>
Coefficient grem::physics::HingeJointOptions< N >::angularLimitDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO

Damping ratio of the hinge when extended beyond minAngle/maxAngle.

Must be positive.

◆ flags

template<size_t N>
JointFlags<N> grem::physics::HingeJointOptions< N >::flags {}

Boolean properties of the joint.


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