v3_sub( mtxA[3], (v3f){ r,r,r }, box[0] );
v3_add( mtxA[3], (v3f){ r,r,r }, box[1] );
- while( bh_next( s->bh_scene, &it, box, &idx ) )
- {
+ while( bh_next( s->bh_scene, &it, box, &idx ) ){
u32 *ptri = &sc->arrindices[ idx*3 ];
v3f tri[3];
int contact = rb_sphere__triangle( mtxA, b, tri, &buf[count] );
count += contact;
- if( count == 16 )
- {
+ if( count == 16 ){
vg_warn( "Exceeding sphere_vs_scene capacity. Geometry too dense!\n" );
return count;
}
scene *sc = s->bh_scene->user;
- while( bh_next( s->bh_scene, &it, bbx, &idx ) )
- {
+ while( bh_next( s->bh_scene, &it, bbx, &idx ) ){
u32 *ptri = &sc->arrindices[ idx*3 ];
v3f tri[3];
int contact = rb_capsule__triangle( mtxA, c, tri, &buf[count] );
count += contact;
- if( count >= 16 )
- {
+ if( count >= 16 ){
vg_warn("Exceeding capsule_vs_scene capacity. Geometry too dense!\n");
return count;
}