X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vehicle.c;h=d9c6d30081ca2820515f8aca925e8a356ebd4025;hb=35b57a341eb37d863ec69e4f011a88b7bfba5c01;hp=a171a8d846c6d5ef2686beae59979fd9e883860b;hpb=2dd61c7f0185ec525658ca398801f46e6adccf23;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/vehicle.c b/vehicle.c index a171a8d..d9c6d30 100644 --- a/vehicle.c +++ b/vehicle.c @@ -10,7 +10,7 @@ VG_STATIC int spawn_car( int argc, const char *argv[] ){ float t; if( spherecast_world( world_current_instance(), ra, rb, - gzoomer.obj.inf.sphere.radius, &t, rx ) != -1 ) + gzoomer.obj.inf.sphere.radius, &t, rx, 0 ) != -1 ) { v3_lerp( ra, rb, t, gzoomer.obj.rb.co ); gzoomer.obj.rb.co[1] += 4.0f; @@ -68,7 +68,7 @@ VG_STATIC void vehicle_wheel_force( int index ) #if 1 float t; if( spherecast_world( world_current_instance(), pa, pb, - k_car_wheel_radius, &t, n ) == -1 ) + k_car_wheel_radius, &t, n, 0 ) == -1 ) { t = 1.0f; } @@ -225,7 +225,7 @@ VG_STATIC void vehicle_update_fixed(void) rb_ct manifold[64]; int len = rb_sphere__scene( rb->to_world, &gzoomer.obj.inf.sphere, NULL, &world_current_instance()->rb_geo.inf.scene, - manifold ); + manifold, 0 ); for( int j=0; jrb_geo.rb;