SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::RodElementRotationConstraintParams Struct Reference

Parameters for creating a tracking constraint on the world rotation of a rod element. More...

#include <mochi_structs.h>

Inheritance diagram for superdex::RodElementRotationConstraintParams:
superdex::ConstraintParams superdex::prefab::RodElementRotationConstraintPrefab

Public Member Functions

bool operator== (RodElementRotationConstraintParams const &) const =default
Public Member Functions inherited from superdex::ConstraintParams
bool operator== (ConstraintParams const &) const =default

Public Attributes

ActorHandle actor {}
 Actor handle identifying the rod actor.
int elementIndex = 0
 Index of the element in the rod actor.
Real3 refFrameRotVec {}
 Reference-frame orientation relative to the target rotation, expressed as a rotation vector [rad].
Public Attributes inherited from superdex::ConstraintParams
real damping = 0_r
 Constraint damping coefficient.
real saturation = -1_r
 Saturation distance [m] or angle [rad].
real stiffness = 1e6_r
 Constraint stiffness coefficient.

Detailed Description

Parameters for creating a tracking constraint on the world rotation of a rod element.

Forces the world rotation of a specified rod element's material frame to track a target rotation. The target rotation is initialized to the rotation observed at constraint creation time, and can be updated at runtime via Constraint::SetTargetRotation.

See also
Scene::CreateRodElementRotationConstraint, ConstraintType::RodElementRotation, Constraint::SetTargetRotation

Definition at line 438 of file mochi_structs.h.

Member Function Documentation

◆ operator==()

bool superdex::RodElementRotationConstraintParams::operator== ( RodElementRotationConstraintParams const & ) const
default

Member Data Documentation

◆ actor

ActorHandle superdex::RodElementRotationConstraintParams::actor {}

Actor handle identifying the rod actor.

Definition at line 441 of file mochi_structs.h.

◆ elementIndex

int superdex::RodElementRotationConstraintParams::elementIndex = 0

Index of the element in the rod actor.

Definition at line 443 of file mochi_structs.h.

◆ refFrameRotVec

Real3 superdex::RodElementRotationConstraintParams::refFrameRotVec {}

Reference-frame orientation relative to the target rotation, expressed as a rotation vector [rad].

The constraint deviation is expressed in this frame.

Definition at line 439 of file mochi_structs.h.


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