ludic.anim: animset_choice names the playing choice's clip as the set does, animset_can says whether the rig carries any of a state's clips (a one-shot with none is not asked for)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a22b8a572b
commit
a87f20c66e
6 changed files with 35 additions and 3 deletions
|
|
@ -6,6 +6,7 @@ export function animset_tick(anim_st: mut AnimState, pl: AnimPlayer, sk: Skin, d
|
|||
let d = AnimSets[pl.set].states[pl.state]
|
||||
let k = as_pick(pl, d)
|
||||
if k < 0 { return false }
|
||||
pl.pick = k
|
||||
pl.rate = as_rate(pl, d, d.choices[k])
|
||||
as_switch(pl, d, pl.clips[pl.base[pl.state] + k])
|
||||
let adv = dt * pl.rate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue