vg_line( tri[1],tri[2],0x10ffffff );
vg_line( tri[2],tri[0],0x10ffffff );
- int hits = rb_sphere_triangle( rba, rbb, tri, buf+count );
+ int contact = rb_sphere_triangle( rba, rbb, tri, buf+count );
+
#ifdef RIGIDBODY_DYNAMIC_MESH_EDGES
- if( hits )
+ if( contact )
inf->collided = 1;
#endif
- count += hits;
+ count += contact;
if( count == 12 )
{
continue;
rb_ct *ct = buf+count;
-
+
v3_muls( inf_i->normal, c0, ct->n );
v3_muladds( ct->n, inf_j->normal, c1, ct->n );
v3_normalize( ct->n );