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

Configuration options for a cylindrical joint. More...

#include <GREM/physics/joints.hpp>

Public Member Functions

constexpr bool operator== (const CylinderJointOptions &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 cylindrical joint when the attachment frame points are separated perpendicular to the joint axis.
Coefficient linearAttachmentDampingRatio = DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO
 Damping ratio of the cylindrical joint when the attachment frame points are separated perpendicular to the joint axis.
Frequency angularAttachmentStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS
 Stiffness of the prismatic joint when the attachment frame directions are separated.
Coefficient angularAttachmentDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO
 Damping ratio of the prismatic joint when the attachment frame directions are separated.
LinearVelocity1D linearDriveTargetVelocity {}
 Target velocity of the linear drive.
Force1D linearDriveMaxForce {}
 Maximum force applied by the linear drive.
Length1D minOffset = Length1D::MIN
 Minimum slide offset of the cylindrical joint.
Length1D maxOffset = Length1D::MAX
 Maximum slide offset of the cylindrical joint.
Frequency linearLimitStiffness = DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS
 Stiffness of the cylindrical joint when extended beyond minOffset/maxOffset.
Coefficient linearLimitDampingRatio = DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO
 Damping ratio of the cylindrical joint when extended beyond minOffset/maxOffset.
AngularVelocity2D angularDriveTargetVelocity {}
 Target velocity of the angular drive.
Torque2D angularDriveMaxTorque {}
 Maximum torque applied by the angular drive.
Angle minAngle = Angle::MIN
 Minimum angle of the cylindrical joint.
Angle maxAngle = Angle::MAX
 Maximum angle of the cylindrical joint.
Frequency angularLimitStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS
 Stiffness of the cylindrical joint when extended beyond minAngle/maxAngle.
Coefficient angularLimitDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO
 Damping ratio of the cylindrical joint when extended beyond minAngle/maxAngle.
JointFlags< N > flags {}
 Boolean properties of the joint.

Detailed Description

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

Configuration options for a cylindrical 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::CylinderJointOptions< N >::operator== ( const CylinderJointOptions< 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::CylinderJointOptions< N >::attachmentOffsets {}

Local offsets of the attachment frames of the connected objects.

◆ attachmentOrientations

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

Local orientations of the attachment frames of the connected objects.

◆ linearAttachmentStiffness

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

Stiffness of the cylindrical joint when the attachment frame points are separated perpendicular to the joint axis.

Must be non-negative.

◆ linearAttachmentDampingRatio

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

Damping ratio of the cylindrical joint when the attachment frame points are separated perpendicular to the joint axis.

Must be positive.

◆ angularAttachmentStiffness

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

Stiffness of the prismatic joint when the attachment frame directions are separated.

Must be non-negative.

◆ angularAttachmentDampingRatio

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

Damping ratio of the prismatic joint when the attachment frame directions are separated.

Must be positive.

◆ linearDriveTargetVelocity

template<size_t N>
LinearVelocity1D grem::physics::CylinderJointOptions< N >::linearDriveTargetVelocity {}

Target velocity of the linear drive.

◆ linearDriveMaxForce

template<size_t N>
Force1D grem::physics::CylinderJointOptions< N >::linearDriveMaxForce {}

Maximum force applied by the linear drive.

◆ minOffset

template<size_t N>
Length1D grem::physics::CylinderJointOptions< N >::minOffset = Length1D::MIN

Minimum slide offset of the cylindrical joint.

Must be less than or equal to maxOffset.

◆ maxOffset

template<size_t N>
Length1D grem::physics::CylinderJointOptions< N >::maxOffset = Length1D::MAX

Maximum slide offset of the cylindrical joint.

Must be greater than or equal to minOffset.

◆ linearLimitStiffness

Stiffness of the cylindrical joint when extended beyond minOffset/maxOffset.

Must be non-negative.

◆ linearLimitDampingRatio

Damping ratio of the cylindrical joint when extended beyond minOffset/maxOffset.

Must be positive.

◆ angularDriveTargetVelocity

template<size_t N>
AngularVelocity2D grem::physics::CylinderJointOptions< N >::angularDriveTargetVelocity {}

Target velocity of the angular drive.

◆ angularDriveMaxTorque

template<size_t N>
Torque2D grem::physics::CylinderJointOptions< N >::angularDriveMaxTorque {}

Maximum torque applied by the angular drive.

◆ minAngle

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

Minimum angle of the cylindrical joint.

Must be less than or equal to maxAngle.

◆ maxAngle

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

Maximum angle of the cylindrical joint.

Must be greater than or equal to minAngle.

◆ angularLimitStiffness

Stiffness of the cylindrical joint when extended beyond minAngle/maxAngle.

Must be non-negative.

◆ angularLimitDampingRatio

Damping ratio of the cylindrical joint when extended beyond minAngle/maxAngle.

Must be positive.

◆ flags

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

Boolean properties of the joint.


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