actually render trails
[carveJwlIkooP6JGAAIwe30JlM.git] / testing.c
index ad98cce5e3c051f73972dd59254dd6abd2e9aa6d..2e581637e017e040f12b6fda8ec9c3c7e58b7f55 100644 (file)
--- a/testing.c
+++ b/testing.c
@@ -1,4 +1,7 @@
-#include "rigidbody.h"
+#pragma once
+#include "vg/vg_m.h"
+#include "vg/vg_rigidbody.h"
+#include "scene_rigidbody.h"
 
 struct {
    rigidbody rb;
@@ -18,6 +21,13 @@ static void testing_update(void){
       q_identity( baller.rb.q );
       rb_update_matrices( &baller.rb );
    }
+
+   if( vg_getkey( SDLK_8 ) ){
+      localplayer.have_glider = 1;
+      localplayer.glider_orphan = 0;
+      player_glide.t = -1.0f;
+   }
+
    vg_line_boxf_transformed( baller.rb.to_world, baller.box, VG__RED );
 
    world_instance *world = world_current_instance();