From: hgn Date: Wed, 4 Oct 2023 05:13:41 +0000 (+0100) Subject: full walk animator compression X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;h=430081b929e41735f0036ded51e186f5bacdbce3;p=carveJwlIkooP6JGAAIwe30JlM.git full walk animator compression --- diff --git a/player_walk.c b/player_walk.c index ca264f3..1306e2a 100644 --- a/player_walk.c +++ b/player_walk.c @@ -967,5 +967,16 @@ static void player__walk_animator_exchange( bitpack_ctx *ctx, void *data ){ //bitpack_bytes( ctx, sizeof(*animator), animator ); bitpack_bytes( ctx, sizeof(animator->root_co), animator->root_co ); bitpack_qquat( ctx, animator->root_q ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->fly ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->run ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->walk ); + bitpack_qf32( ctx, 16, 0.0f, 120.0f, &animator->walk_timer ); + + /* we can do variable length exchanges now? */ + + bitpack_bytes( ctx, sizeof(animator->foot_anchor), animator->foot_anchor ); + bitpack_bytes( ctx, 8, &animator->outro_type ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->outro_t ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->commit_t ); } #endif /* PLAYER_DEVICE_WALK_H */