Explorar o código

Merge pull request #1881 from NateWardawg/master

Removed redundant code in the kinematic 3D demo.
Juan Linietsky %!s(int64=10) %!d(string=hai) anos
pai
achega
2882ff1b7e
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      demos/3d/kinematic_char/cubio.gd

+ 2 - 3
demos/3d/kinematic_char/cubio.gd

@@ -46,9 +46,8 @@ func _fixed_process(delta):
 	
 	vel.x=hvel.x;
 	vel.z=hvel.z	
-		
-	var motion = vel*delta
-	motion=move(vel*delta)
+
+	var motion = move(vel*delta)
 
 	var on_floor = false
 	var original_vel = vel