|
SuperDex Physics C++ API
|
Parameters controlling recentering behavior for standalone soft, shell, and rod actors. More...
#include <mochi_structs.h>
Public Member Functions | |
| bool | operator== (RecenteringParams const &) const =default |
Public Attributes | |
| real | rotationEpsilonDeg = 0_r |
| Minimum rotation threshold [degrees] to apply recentering. | |
| real | translationEpsilon = 0_r |
| Minimum translation threshold [m] to apply recentering. | |
| bool | useRecentering = true |
| Whether recentering is enabled. | |
Parameters controlling recentering behavior for standalone soft, shell, and rod actors.
Recentering transfers bulk motion from local simulation coordinates into the actor's root transform. This makes the root transform approximately follow the actor while keeping local displacements small, even when the actor travels far from its initial position. Keeping local values near the scale of the actor reduces floating-point roundoff and loss of precision.
Soft actors recenter both translation and rotation around a rigid pivot, typically near the center of mass. Shell and rod actors use a pivot node near the centroid of the reference mesh. Because that pivot carries no rotation, they recenter translation only and rotationEpsilonDeg has no effect.
Definition at line 88 of file mochi_structs.h.
|
default |
| real superdex::RecenteringParams::rotationEpsilonDeg = 0_r |
Minimum rotation threshold [degrees] to apply recentering.
Definition at line 91 of file mochi_structs.h.
| real superdex::RecenteringParams::translationEpsilon = 0_r |
Minimum translation threshold [m] to apply recentering.
Definition at line 93 of file mochi_structs.h.
| bool superdex::RecenteringParams::useRecentering = true |
Whether recentering is enabled.
Definition at line 89 of file mochi_structs.h.