to the workers of the world
[carveJwlIkooP6JGAAIwe30JlM.git] / rigidbody.h
index dfacf36c63a3f02ee1b52e543651410988039b2d..0fcb894d089bd0204dc839df1f6cff263c06a7a2 100644 (file)
@@ -2208,8 +2208,7 @@ VG_STATIC void rb_depenetrate( rb_ct *manifold, int len, v3f dt )
  */
 VG_STATIC void rb_presolve_contacts( rb_ct *buffer, int len )
 {
-   for( int i=0; i<len; i++ )
-   {
+   for( int i=0; i<len; i++ ){
       rb_ct *ct = &buffer[i];
       rb_prepare_contact( ct, k_rb_delta );
 
@@ -2229,8 +2228,7 @@ VG_STATIC void rb_presolve_contacts( rb_ct *buffer, int len )
       ct->normal_mass += v3_dot( rbCn, rbCnI );
       ct->normal_mass  = 1.0f/ct->normal_mass;
 
-      for( int j=0; j<2; j++ )
-      {
+      for( int j=0; j<2; j++ ){
          v3f raCtI, rbCtI;
          v3_cross( ct->t[j], ra, raCt );
          v3_cross( ct->t[j], rb, rbCt );
@@ -2282,8 +2280,7 @@ VG_STATIC void rb_linear_impulse( rigidbody *rb, v3f delta, v3f impulse )
  */
 VG_STATIC void rb_solve_contacts( rb_ct *buf, int len )
 {
-   for( int i=0; i<len; i++ )
-   {
+   for( int i=0; i<len; i++ ){
       struct contact *ct = &buf[i];
 
       v3f rv, ra, rb;
@@ -2292,8 +2289,7 @@ VG_STATIC void rb_solve_contacts( rb_ct *buf, int len )
       rb_rcv( ct->rba, ct->rbb, ra, rb, rv );
       
       /* Friction */
-      for( int j=0; j<2; j++ )
-      {
+      for( int j=0; j<2; j++ ){
          float     f = k_friction * ct->norm_impulse,
                   vt = v3_dot( rv, ct->t[j] ),
               lambda = ct->tangent_mass[j] * -vt;