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

Parameters controlling recentering behavior for soft actors (not soft-skinned). More...

#include <mochi_structs.h>

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.

Detailed Description

Parameters controlling recentering behavior for soft actors (not soft-skinned).

Recentering automatically updates the root transform as the actor's "rigid pivot" (typically near the center of mass) moves, with corresponding adjustments to local-space coordinates.

Note
When recentering is disabled, local-space displacement values can become very large if the actor moves far from its starting position. This may be problematic due to finite-precision arithmetic.
When recentering is enabled, the root transform rotates and translates to follow the actor, and local-space displacements reflect only deformation, not global rotation or translation.
See also
Actor::GetRecenteringParams, Actor::SetRecenteringParams

Definition at line 68 of file mochi_structs.h.

Member Data Documentation

◆ rotationEpsilonDeg

real superdex::RecenteringParams::rotationEpsilonDeg = 0_r

Minimum rotation threshold [degrees] to apply recentering.

Note
Recentering is applied if either rotation or translation change more than their respective thresholds.

Definition at line 71 of file mochi_structs.h.

◆ translationEpsilon

real superdex::RecenteringParams::translationEpsilon = 0_r

Minimum translation threshold [m] to apply recentering.

Note
Recentering is applied if either rotation or translation change more than their respective thresholds.

Definition at line 73 of file mochi_structs.h.

◆ useRecentering

bool superdex::RecenteringParams::useRecentering = true

Whether recentering is enabled.

Definition at line 69 of file mochi_structs.h.


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