GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::JointTwistConstraint3D Struct Reference

Angular limit of a joint in a 3-dimensional world around the local Y axes of the connected objects' attachment frames. More...

#include <GREM/physics/joints.hpp>

Public Member Functions

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

Public Attributes

AngularVelocity2D driveTargetVelocity {}
 Target velocity of the drive.
Torque2D driveMaxTorque {}
 Maximum torque applied by the drive.
Angle minAngle = Angle::MIN
 Minimum twist angle.
Angle maxAngle = Angle::MAX
 Maximum twist angle.
Frequency limitStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS
 Stiffness of the constraint limits.
Coefficient limitDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO
 Damping ratio used when solving the constraint limits.

Detailed Description

Angular limit of a joint in a 3-dimensional world around the local Y axes of the connected objects' attachment frames.

Member Function Documentation

◆ operator==()

bool grem::physics::JointTwistConstraint3D::operator== ( const JointTwistConstraint3D & 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

◆ driveTargetVelocity

AngularVelocity2D grem::physics::JointTwistConstraint3D::driveTargetVelocity {}

Target velocity of the drive.

◆ driveMaxTorque

Torque2D grem::physics::JointTwistConstraint3D::driveMaxTorque {}

Maximum torque applied by the drive.

◆ minAngle

Angle grem::physics::JointTwistConstraint3D::minAngle = Angle::MIN

Minimum twist angle.

Must be less than or equal to maxAngle.

◆ maxAngle

Angle grem::physics::JointTwistConstraint3D::maxAngle = Angle::MAX

Maximum twist angle.

Must be greater than or equal to minAngle.

◆ limitStiffness

Frequency grem::physics::JointTwistConstraint3D::limitStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS

Stiffness of the constraint limits.

Must be non-negative.

◆ limitDampingRatio

Coefficient grem::physics::JointTwistConstraint3D::limitDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO

Damping ratio used when solving the constraint limits.

Must be positive.


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