X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player.h;h=b70717eb5076b0fbc8aa3cae33f07f47fe5f29c3;hb=d57b7661518800479c00300ce57407378696eec9;hp=2860d1934cbbf217bb652ffcb8562255f168da38;hpb=1c97cb161f885ad24d3356d92c8f4fd0e252bc61;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.h b/player.h index 2860d19..b70717e 100644 --- a/player.h +++ b/player.h @@ -450,39 +450,6 @@ static void player_physics(void) len += rb_sphere_vs_scene( rbf, &world.rb_geo, manifold+len ); len += rb_sphere_vs_scene( rbb, &world.rb_geo, manifold+len ); -#if 0 - for( int i=0; i= vg_list_size(manifold)) - { - vg_error("Manifold overflow!\n"); - break; - } - - rb_ct *ct = &manifold[manifold_count]; - v3_copy( poles[j], player.rb.co ); - - manifold_count += rb_sphere_vs_triangle( &player.rb, tri, ct ); - } - - v3_copy( temp, player.rb.co ); - } -#endif - rb_presolve_contacts( manifold, len ); v3f surface_avg = {0.0f, 0.0f, 0.0f}; @@ -493,8 +460,17 @@ static void player_physics(void) else { for( int i=0; i 0.5f )