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

Configuration options for a fully constrained joint. More...

#include <GREM/physics/joints.hpp>

Public Member Functions

constexpr bool operator== (const WeldOptions &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 linearStiffness = DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS
 Linear stiffness of the weld.
Coefficient linearDampingRatio = DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO
 Linear damping ratio of the weld.
Frequency angularStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS
 Angular stiffness of the weld.
Coefficient angularDampingRatio = DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO
 Angular damping ratio of the weld.
JointFlags< N > flags {}
 Boolean properties of the joint.

Detailed Description

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

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

Local offsets of the attachment frames of the connected objects.

◆ attachmentOrientations

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

Local orientations of the attachment frames of the connected objects.

◆ linearStiffness

Linear stiffness of the weld.

Must be non-negative.

◆ linearDampingRatio

Linear damping ratio of the weld.

Must be positive.

◆ angularStiffness

template<size_t N>
Frequency grem::physics::WeldOptions< N >::angularStiffness = DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS

Angular stiffness of the weld.

Must be non-negative.

◆ angularDampingRatio

Angular damping ratio of the weld.

Must be positive.

◆ flags

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

Boolean properties of the joint.


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