Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld 6cd136e5-3…

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…

by◐Deata·posted 9d ago
What it does

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.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

SwimAnimator: the diver's animation system, named by `abyssal/diver.avatar` as its `animation`. It blends two clips on the body's skeleton through one AnimGraph Mixer, by how fast the body moves: `hoverClip` (a slow frog-kick hold) at rest and `swimClip` (a flutter kick) under way, the kick's rate following the speed. It also carries the body the way a swimmer moves: the body turns to face where it swims, pitches nose-up / nose-down as it rises and dives, banks into turns, and bobs gently while hovering. The motion is read from the body's own position frame to frame, so every peer animates every diver from what the sync already moves, with nothing extra replicated. Until both clips' retargets have landed the body is collapsed to nothing, so no peer ever sees the skeleton's rest (T) pose after spawn.

newLoop(ref: any, layout: any) → void

argtypedescription
refany
layoutany

stepLoop(l: Loop, speed: number, dt: number) → void

argtypedescription
lLoop
speednumber
dtnumber

skinnedBody( ) → string

holderOf(id: string) → string

the direct child of this root on the path down to `id` (`.parent` answers an entity reference, compared by id)

argtypedescription
idstring

quatMul(a: { number }, b: { number }) → void

argtypedescription
a{ number }
b{ number }

axisAngle(x: number, y: number, z: number, angle: number) → void

argtypedescription
xnumber
ynumber
znumber
anglenumber

rotate(q: { number }, v: vector) → vector

argtypedescription
q{ number }
vvector

wrapAngle(a: number) → number

argtypedescription
anumber

setPose(scale: number, q: { number }, lift: number) → void

argtypedescription
scalenumber
q{ number }
liftnumber

build( ) → void

awake( ) → void

onDestroy( ) → void

update(dt: number) → void

argtypedescription
dtnumber

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.