seperation of body initialization, glider model
[carveJwlIkooP6JGAAIwe30JlM.git] / world_gen.c
index b86c5cf0dda46157f2aec2d2302ac860289c9098..6572876b15eb80e2c45084480f2c01424df26e05 100644 (file)
@@ -266,19 +266,8 @@ static void world_gen_generate_meshes( world_instance *world ){
    /* need send off the memory to the gpu before we can create the bvh. */
    vg_async_stall();
    vg_info( "creating bvh\n" );
-
-   /* setup spacial mapping and rigidbody */
    world->geo_bh = scene_bh_create( world->heap, &world->scene_geo );
 
-   v3_zero( world->rb_geo.rb.co );
-   v3_zero( world->rb_geo.rb.v );
-   q_identity( world->rb_geo.rb.q );
-   v3_zero( world->rb_geo.rb.w );
-
-   world->rb_geo.type = k_rb_shape_scene;
-   world->rb_geo.inf.scene.bh_scene = world->geo_bh;
-   rb_init_object( &world->rb_geo, 0.0f );
-
    /*
     * Generate scene: non-collidable geometry
     * ----------------------------------------------------------------