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

Configuration options for a spherical joint. More...

#include <GREM/physics/joints.hpp>

Public Member Functions

constexpr bool operator== (const BallJointOptions &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 ball joint when the attachment frame points are separated.
Coefficient linearAttachmentDampingRatio = DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO
 Damping ratio of the ball joint when the attachment frame points are separated.
AngularVelocity2D twistDriveTargetVelocity {}
 Target velocity of the twist drive.
Torque2D twistDriveMaxTorque {}
 Maximum torque applied by the twist drive.
Angle minSwingAngle = Angle::MIN
 Minimum swing angle of the ball joint.
Angle maxSwingAngle = Angle::MAX
 Maximum swing angle of the ball joint.
Frequency swingLimitStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS
 Stiffness of the ball joint when extended beyond minSwingAngle/maxSwingAngle.
Coefficient swingLimitDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO
 Damping ratio of the ball joint when extended beyond minSwingAngle/maxSwingAngle.
Angle minTwistAngle = Angle::MIN
 Minimum twist angle of the ball joint.
Angle maxTwistAngle = Angle::MAX
 Maximum twist angle of the ball joint.
Frequency twistLimitStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS
 Stiffness of the ball joint when extended beyond minTwistAngle/maxTwistAngle.
Coefficient twistLimitDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO
 Damping ratio of the ball joint when extended beyond minTwistAngle/maxTwistAngle.
JointFlags< N > flags {}
 Boolean properties of the joint.

Detailed Description

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

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

Local offsets of the attachment frames of the connected objects.

◆ attachmentOrientations

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

Local orientations of the attachment frames of the connected objects.

◆ linearAttachmentStiffness

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

Stiffness of the ball joint when the attachment frame points are separated.

Must be non-negative.

◆ linearAttachmentDampingRatio

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

Damping ratio of the ball joint when the attachment frame points are separated.

Must be positive.

◆ twistDriveTargetVelocity

template<size_t N>
AngularVelocity2D grem::physics::BallJointOptions< N >::twistDriveTargetVelocity {}

Target velocity of the twist drive.

◆ twistDriveMaxTorque

template<size_t N>
Torque2D grem::physics::BallJointOptions< N >::twistDriveMaxTorque {}

Maximum torque applied by the twist drive.

◆ minSwingAngle

template<size_t N>
Angle grem::physics::BallJointOptions< N >::minSwingAngle = Angle::MIN

Minimum swing angle of the ball joint.

Must be less than or equal to maxSwingAngle.

◆ maxSwingAngle

template<size_t N>
Angle grem::physics::BallJointOptions< N >::maxSwingAngle = Angle::MAX

Maximum swing angle of the ball joint.

Must be greater than or equal to minSwingAngle.

◆ swingLimitStiffness

Stiffness of the ball joint when extended beyond minSwingAngle/maxSwingAngle.

Must be non-negative.

◆ swingLimitDampingRatio

Damping ratio of the ball joint when extended beyond minSwingAngle/maxSwingAngle.

Must be positive.

◆ minTwistAngle

template<size_t N>
Angle grem::physics::BallJointOptions< N >::minTwistAngle = Angle::MIN

Minimum twist angle of the ball joint.

Must be less than or equal to maxTwistAngle.

◆ maxTwistAngle

template<size_t N>
Angle grem::physics::BallJointOptions< N >::maxTwistAngle = Angle::MAX

Maximum twist angle of the ball joint.

Must be greater than or equal to minTwistAngle.

◆ twistLimitStiffness

Stiffness of the ball joint when extended beyond minTwistAngle/maxTwistAngle.

Must be non-negative.

◆ twistLimitDampingRatio

Damping ratio of the ball joint when extended beyond minTwistAngle/maxTwistAngle.

Must be positive.

◆ flags

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

Boolean properties of the joint.


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