X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_walk.c;h=b37095da28ded733db41f629dfad1a3d2a61cf45;hb=51e0c2823b3847211eeedd8ce377c79d7642923d;hp=21390c2610ee462aaafa770886a261b98fb1ce9c;hpb=9eb3de757a997becb8406417a4bf613f4cb04900;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_walk.c b/player_walk.c index 21390c2..b37095d 100644 --- a/player_walk.c +++ b/player_walk.c @@ -751,7 +751,12 @@ VG_STATIC void player__walk_animate( player_instance *player, skeleton_lerp_pose( sk, apose, bpose, w->blend_fly, apose ); /* Create transform */ - rb_extrapolate( &player->rb, dest->root_co, dest->root_q ); + if( !player->immobile ) + rb_extrapolate( &player->rb, dest->root_co, dest->root_q ); + else{ + v3_copy( player->rb.co, dest->root_co ); + v4_copy( player->rb.q, dest->root_q ); + } float walk_yaw = player_get_heading_yaw( player );