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

Cone-shaped angular limit of a joint in a 3-dimensional world. More...

#include <GREM/physics/joints.hpp>

Public Member Functions

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

Public Attributes

Angle minAngle = Angle::MIN
 Minimum angle between the attachment frames.
Angle maxAngle = Angle::MAX
 Maximum angle between the attachment frames.
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

Cone-shaped angular limit of a joint in a 3-dimensional world.

Member Function Documentation

◆ operator==()

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

◆ minAngle

Angle grem::physics::JointConeConstraint3D::minAngle = Angle::MIN

Minimum angle between the attachment frames.

Must be less than or equal to maxAngle.

◆ maxAngle

Angle grem::physics::JointConeConstraint3D::maxAngle = Angle::MAX

Maximum angle between the attachment frames.

Must be greater than or equal to minAngle.

◆ limitStiffness

Frequency grem::physics::JointConeConstraint3D::limitStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS

Stiffness of the constraint limits.

Must be non-negative.

◆ limitDampingRatio

Coefficient grem::physics::JointConeConstraint3D::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: