X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=player_glide.c;fp=player_glide.c;h=c8c38587b725f86c85b35959df3f7bdd737ee197;hb=ffc664de040aab29a4fbeec14307996d8e9ae2ec;hp=3091e57e2173c123c37206ad8eb6a10492102046;hpb=171b279a489f1b906265759b33249f61d48d3d5f;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_glide.c b/player_glide.c index 3091e57..c8c3858 100644 --- a/player_glide.c +++ b/player_glide.c @@ -4,6 +4,9 @@ #include "player_glide.h" #include "input.h" +#include "vg/vg_rigidbody.h" +#include "scene_rigidbody.h" + static f32 k_glide_steer = 2.0f, k_glide_cl = 0.04f, k_glide_cs = 0.02f, @@ -267,9 +270,9 @@ static void player_glide_bind(void){ mass += pm; m3x3f pI; - rb_capsule_inertia( r, h, pm, pI ); - rb_rotate_inertia( pI, player_glide.parts[i].mdl ); - rb_translate_inertia( pI, pm, player_glide.parts[i].co ); + vg_capsule_inertia( r, h, pm, pI ); + vg_rotate_inertia( pI, player_glide.parts[i].mdl ); + vg_translate_inertia( pI, pm, player_glide.parts[i].co ); m3x3_add( I, pI, I ); } else if( player_glide.parts[i].shape == k_rb_shape_sphere ){ @@ -279,8 +282,8 @@ static void player_glide_bind(void){ mass += pm; m3x3f pI; - rb_sphere_inertia( r, pm, pI ); - rb_translate_inertia( pI, pm, player_glide.parts[i].co ); + vg_sphere_inertia( r, pm, pI ); + vg_translate_inertia( pI, pm, player_glide.parts[i].co ); m3x3_add( I, pI, I ); } }