Log inGet started
Package

SwimAnimator.component

Newest version

README.md

SwimAnimator

The diver's animation system in Abyssal Garden, attached to the player's avatar root by abyssal/diver.avatar ("animation": { "system": "abyssal.SwimAnimator" }). It builds one AnimGraph on the skinned body: a Mixer that blends a hover clip (slow frog kick, hoverClip) and a swim clip (flutter kick, swimClip) by the body's speed, with the kick's playback rate following the speed. It turns the body to face its horizontal swimming direction, pitches it nose-up or nose-down as it rises or dives, banks it into turns, and bobs it gently while hovering, by turning the root's child that holds the composed body about pivotHeight.

Motion is read from the root's own position frame to frame, so it animates the local diver and every remote diver alike from what the sync already moves; it needs no sibling component (movement comes from abyssal.Swimmer, or anything else that moves the root). Until both clips' retargets have landed the body is collapsed to nothing, so the skeleton's rest (T) pose is never seen after spawn.