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

Configuration options for a prismatic joint. More...

#include <GREM/physics/joints.hpp>

Public Member Functions

constexpr bool operator== (const PrismaticJointOptions &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 prismatic 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 prismatic 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 driveTargetVelocity {}
 Target velocity of the drive.
Force1D driveMaxForce {}
 Maximum force applied by the drive.
Length1D minOffset = Length1D::MIN
 Minimum slide offset of the prismatic joint.
Length1D maxOffset = Length1D::MAX
 Maximum slide offset of the prismatic joint.
Frequency linearLimitStiffness = DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS
 Stiffness of the prismatic joint when extended beyond minOffset/maxOffset.
Coefficient linearLimitDampingRatio = DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO
 Damping ratio of the prismatic joint when extended beyond minOffset/maxOffset.
Angle restAngle {}
 Target angle of the prismatic joint.
Frequency angularLimitStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS
 Stiffness of the prismatic joint when extended beyond restAngle.
Coefficient angularLimitDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO
 Damping ratio of the prismatic joint when extended beyond restAngle.
JointFlags< N > flags {}
 Boolean properties of the joint.

Detailed Description

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

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

Local offsets of the attachment frames of the connected objects.

◆ attachmentOrientations

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

Local orientations of the attachment frames of the connected objects.

◆ linearAttachmentStiffness

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

Stiffness of the prismatic 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::PrismaticJointOptions< N >::linearAttachmentDampingRatio = DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO

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

Must be positive.

◆ angularAttachmentStiffness

template<size_t N>
Frequency grem::physics::PrismaticJointOptions< 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::PrismaticJointOptions< N >::angularAttachmentDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO

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

Must be positive.

◆ driveTargetVelocity

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

Target velocity of the drive.

◆ driveMaxForce

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

Maximum force applied by the drive.

◆ minOffset

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

Minimum slide offset of the prismatic joint.

Must be less than or equal to maxOffset.

◆ maxOffset

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

Maximum slide offset of the prismatic joint.

Must be greater than or equal to minOffset.

◆ linearLimitStiffness

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

Must be non-negative.

◆ linearLimitDampingRatio

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

Must be positive.

◆ restAngle

template<size_t N>
Angle grem::physics::PrismaticJointOptions< N >::restAngle {}

Target angle of the prismatic joint.

◆ angularLimitStiffness

Stiffness of the prismatic joint when extended beyond restAngle.

Must be non-negative.

◆ angularLimitDampingRatio

Damping ratio of the prismatic joint when extended beyond restAngle.

Must be positive.

◆ flags

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

Boolean properties of the joint.


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