refactor
[carveJwlIkooP6JGAAIwe30JlM.git] / player_physics.h
index 9d58e17dfa7196147b7ead3cc944a677c4dfbe09..e396e0031d3771cb937a5955b73c5f13bbed2de3 100644 (file)
@@ -456,6 +456,12 @@ VG_STATIC void player_walk_physics(void)
       }
       v3_add( dt, phys->rb.co, phys->rb.co );
 
+      if( len )
+      {
+         struct world_material *surface_mat = world_contact_material(manifold);
+         player.surface_prop = surface_mat->info.surface_prop;
+      }
+
       /* jump */
       if( player.input_jump->button.value )
       {