From fad1c8397bea55bde3e548a7b5ee138a264ba550 Mon Sep 17 00:00:00 2001 From: Matthew Ehrenhofler Date: Sun, 8 Jul 2018 21:44:44 -0400 Subject: [PATCH] Fix FPS Tutorial move_and_slide --- tutorials/3d/fps_tutorial/part_one.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/3d/fps_tutorial/part_one.rst b/tutorials/3d/fps_tutorial/part_one.rst index c219659bf..1b267b453 100644 --- a/tutorials/3d/fps_tutorial/part_one.rst +++ b/tutorials/3d/fps_tutorial/part_one.rst @@ -145,7 +145,7 @@ Add the following code to ``Player.gd``: var vel = Vector3() const MAX_SPEED = 20 const JUMP_SPEED = 18 - const ACCEL= 4.5 + const ACCEL = 4.5 var dir = Vector3() @@ -228,7 +228,7 @@ Add the following code to ``Player.gd``: hvel = hvel.linear_interpolate(target, accel*delta) vel.x = hvel.x vel.z = hvel.z - vel = move_and_slide(vel,Vector3(0,1,0), true, 0.05, 4, deg2rad(MAX_SLOPE_ANGLE)) + vel = move_and_slide(vel,Vector3(0,1,0), 0.05, 4, deg2rad(MAX_SLOPE_ANGLE)) func _input(event): if event is InputEventMouseMotion and Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED: