|
SuperDex Physics C++ API
|
Parameters for creating a tracking constraint on the world rotation of a rod element. More...
#include <mochi_structs.h>
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. | |
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.
Definition at line 438 of file mochi_structs.h.
|
default |
| ActorHandle superdex::RodElementRotationConstraintParams::actor {} |
Actor handle identifying the rod actor.
Definition at line 441 of file mochi_structs.h.
| int superdex::RodElementRotationConstraintParams::elementIndex = 0 |
Index of the element in the rod actor.
Definition at line 443 of file mochi_structs.h.
| 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.