- v3_copy( main_camera.pos, ra );
- v3_muladds( ra, main_camera.transform[2], -10.0f, rb );
+ v3_copy( skaterift.cam.pos, ra );
+ v3_muladds( ra, skaterift.cam.transform[2], -10.0f, rb );
float t;
if( spherecast_world( world_current_instance(), ra, rb,
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;
{
v3_lerp( ra, rb, t, gzoomer.obj.rb.co );
gzoomer.obj.rb.co[1] += 4.0f;
v3_copy((v3f){ 1.0f, -0.25f, 1.5f }, gzoomer.wheels_local[3] );
}
v3_copy((v3f){ 1.0f, -0.25f, 1.5f }, gzoomer.wheels_local[3] );
}
#if 1
float t;
if( spherecast_world( world_current_instance(), pa, pb,
#if 1
float t;
if( spherecast_world( world_current_instance(), pa, pb,
vg_line( pa, pc, VG__WHITE );
v3_copy( pc, gzoomer.wheels[index] );
vg_line( pa, pc, VG__WHITE );
v3_copy( pc, gzoomer.wheels[index] );
rb_ct manifold[64];
int len = rb_sphere__scene( rb->to_world, &gzoomer.obj.inf.sphere, NULL,
&world_current_instance()->rb_geo.inf.scene,
rb_ct manifold[64];
int len = rb_sphere__scene( rb->to_world, &gzoomer.obj.inf.sphere, NULL,
&world_current_instance()->rb_geo.inf.scene,