#include "common.h"
#include "model.h"
#include "scene.h"
+#include "world.h"
#include "ik.h"
#include "rigidbody.h"
+#include "render.h"
#include "shaders/character.h"
vg_tex2d tex_pallet = { .path = "textures/ch_gradient.qoi" };
static void character_ragdoll_iter( struct character *ch )
{
+ /* TODO: Lots of the RB functions unimplemented here currently */
+
+ return;
rb_solver_reset();
for( int i=0; i<PART_COUNT; i++ )
{
- rb_build_manifold_terrain( &ch->ragdoll[i] );
-
- /* TODO: Cars, piece-to-piece collision */
-#if 0
- u32 colliders[16];
- int len = bh_select( &world.bhcubes, ch->ragdoll[i].bbx_world,
- colliders, 16 );
-
- for( int j=0; j<len; j++ )
- rb_build_manifold_rb_static( &ch->ragdoll[i],
- &world.temp_rbs[colliders[j]] );
-#endif
+ rb_collide( &ch->ragdoll[i], &world.rb_geo );
}
rb_presolve_contacts( rb_contact_buffer, rb_contact_count );