소스 검색

Merge pull request #1396 from Noshyaar/fps

FPS/Part1: Fix missing param in move_and_slide
Max Hilbrunner 7 년 전
부모
커밋
fe71a2e048
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. BIN
      tutorials/3d/fps_tutorial/files/Godot_FPS_Part_1.zip
  2. 1 1
      tutorials/3d/fps_tutorial/part_one.rst

BIN
tutorials/3d/fps_tutorial/files/Godot_FPS_Part_1.zip


+ 1 - 1
tutorials/3d/fps_tutorial/part_one.rst

@@ -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), 0.05, 4, deg2rad(MAX_SLOPE_ANGLE))
+        vel = move_and_slide(vel,Vector3(0,1,0), true, 0.05, 4, deg2rad(MAX_SLOPE_ANGLE))
         
     func _input(event):
         if event is InputEventMouseMotion and Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED: