- scene *sc = rbb->inf.scene.bh_scene->user;
-
- bh_iter it;
- bh_iter_init( 0, &it );
- int idx;
-
- int count = 0;
-
- while( bh_next( rbb->inf.scene.bh_scene, &it, rba->bbx_world, &idx ) )
- {
- u32 *ptri = &sc->arrindices[ idx*3 ];
- v3f tri[3];
-
- for( int j=0; j<3; j++ )
- v3_copy( sc->arrvertices[ptri[j]].co, tri[j] );
-
- buf[ count ].element_id = ptri[0];
-
-#if 0
- vg_line( tri[0],tri[1],0x70ff6000 );
- vg_line( tri[1],tri[2],0x70ff6000 );
- vg_line( tri[2],tri[0],0x70ff6000 );
-#endif
-
- int contact = rb_capsule_triangle( rba, rbb, tri, buf+count );
- count += contact;
-
- if( count == 16 )
- {
- vg_warn("Exceeding capsule_vs_scene capacity. Geometry too dense!\n");
- return count;
- }
- }
-
- return count;
-}
-
-VG_STATIC int rb_scene_capsule( rigidbody *rba, rigidbody *rbb, rb_ct *buf )
-{
- return rb_capsule_scene( rbb, rba, buf );
-}
-
-VG_STATIC int RB_MATRIX_ERROR( rigidbody *rba, rigidbody *rbb, rb_ct *buf )
-{
-#if 0
- vg_error( "Collision type is unimplemented between types %d and %d\n",
- rba->type, rbb->type );
-#endif
-
- return 0;
-}
-
-VG_STATIC int rb_sphere_capsule( rigidbody *rba, rigidbody *rbb, rb_ct *buf )
-{
- return rb_capsule_sphere( rbb, rba, buf );
-}
-
-VG_STATIC int rb_box_capsule( rigidbody *rba, rigidbody *rbb, rb_ct *buf )
-{
- return rb_capsule_box( rbb, rba, buf );
-}
-
-VG_STATIC int rb_box_sphere( rigidbody *rba, rigidbody *rbb, rb_ct *buf )
-{
- return rb_sphere_box( rbb, rba, buf );
-}