Enum WalkGaitParameters.PelvisGroup.GravitySource
- Namespace
- CodeSmile.AnyMotion.AnimateYourself.Gait /
- Assembly
- ApiSource.dll
L02 (run): where FlightGravity comes from for the flight-phase pelvis arc
(GaitMath.FlightHeight). Append-only, same rule as
WalkGaitParameters.GroundGroup.ContactAnchoring: this is portable preset data, so reordering or
deleting a member after presets exist in the wild would silently reinterpret them.
public enum WalkGaitParameters.PelvisGroup.GravitySource
Expand Details ...
Fields
Authored = 0Use FlightGravity directly, independent of any physics setup. The same preset then produces the same arc on any rig, in any project, regardless of scene physics settings — see WalkGaitParameters's own portability remarks.
Physics = 1Use this character's Rigidbody if one exists on this object or a parent/child (same search as RigMetrics): 0 if it has
useGravityoff, otherwise — and whenever no Rigidbody exists at all, which is the common case for a CharacterController-driven character — Unity's project-widePhysics.gravitymagnitude. Unity's 3D Rigidbody has no per-body gravity scale (unlike Rigidbody2D.gravityScale), so a present Rigidbody only ever changes whether gravity applies here, never its magnitude.