X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=rigidbody.h;h=398791341b592459f3b1e922ebfdb46a2fcf88a5;hb=5f01e7ab4aad052faad262b55404819dac3d25ce;hp=0fcb894d089bd0204dc839df1f6cff263c06a7a2;hpb=620beae94b362ae4d4c42e5ba3329a6211d67a8f;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/rigidbody.h b/rigidbody.h index 0fcb894..3987913 100644 --- a/rigidbody.h +++ b/rigidbody.h @@ -1509,8 +1509,7 @@ VG_STATIC int rb_sphere__scene( m4x3f mtxA, rb_sphere *b, 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]; @@ -1526,8 +1525,7 @@ VG_STATIC int rb_sphere__scene( m4x3f mtxA, rb_sphere *b, 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; } @@ -1999,8 +1997,7 @@ VG_STATIC int rb_capsule__scene( m4x3f mtxA, rb_capsule *c, 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]; @@ -2012,8 +2009,7 @@ VG_STATIC int rb_capsule__scene( m4x3f mtxA, rb_capsule *c, 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; }