+
+ float vel = v3_length(v);
+
+ ch->shoes[0] = 1;
+ ch->shoes[1] = 1;
+}
+
+static void character_mimic_ragdoll( struct character *ch )
+{
+ for( int i=0; i<PART_COUNT; i++ )
+ {
+ rigidbody *rb = &ch->ragdoll[i];
+ v3f *mat = ch->matrices[i];
+
+ m3x3_copy( rb->to_world, mat );
+ v3f inv_delta;
+ v3_negate( rb->delta, inv_delta );
+ m4x3_mulv( rb->to_world, inv_delta, mat[3] );
+ }
+
+ /* Attach wheels to board */
+ m3x3_copy( ch->matrices[k_chpart_board], ch->matrices[k_chpart_wb] );
+ m3x3_copy( ch->matrices[k_chpart_board], ch->matrices[k_chpart_wf] );
+ m4x3_mulv( ch->matrices[k_chpart_board], ch->offsets[k_chpart_wb],
+ ch->matrices[k_chpart_wb][3] );
+ m4x3_mulv( ch->matrices[k_chpart_board], ch->offsets[k_chpart_wf],
+ ch->matrices[k_chpart_wf][3] );