- return scene_raycast( &world->scene_geo, world->geo_bh, pos, dir, hit );
+ return scene_raycast( &world->scene_geo, world->geo_bh, pos, dir, hit,
+ ignore );
}
/*
* Cast a sphere from a to b and see what time it hits
*/
VG_STATIC int spherecast_world( world_instance *world,
}
/*
* Cast a sphere from a to b and see what time it hits
*/
VG_STATIC int spherecast_world( world_instance *world,
- v3f pa, v3f pb, float r, float *t, v3f n )
+ v3f pa, v3f pb, float r, float *t, v3f n,
+ u16 ignore )
i32 idx;
while( bh_next( world->geo_bh, &it, &idx ) ){
u32 *ptri = &world->scene_geo.arrindices[ idx*3 ];
i32 idx;
while( bh_next( world->geo_bh, &it, &idx ) ){
u32 *ptri = &world->scene_geo.arrindices[ idx*3 ];
for( int j=0; j<3; j++ ){
v3_copy( world->scene_geo.arrvertices[ptri[j]].co, tri[j] );
box_addpt( box, tri[j] );
for( int j=0; j<3; j++ ){
v3_copy( world->scene_geo.arrvertices[ptri[j]].co, tri[j] );
box_addpt( box, tri[j] );