From 7e2a730d05c716edd70f48cc8d7f2a0c1364354d Mon Sep 17 00:00:00 2001 From: Kukhyeon Heo Date: Tue, 25 Jun 2024 18:18:02 +0900 Subject: [PATCH] pi/4 is 45 degrees. --- getting_started/first_3d_game/04.mob_scene.rst | 4 ++-- getting_started/first_3d_game/07.killing_player.rst | 4 ++-- getting_started/first_3d_game/09.adding_animations.rst | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/getting_started/first_3d_game/04.mob_scene.rst b/getting_started/first_3d_game/04.mob_scene.rst index 5e3740421..a96f71d34 100644 --- a/getting_started/first_3d_game/04.mob_scene.rst +++ b/getting_started/first_3d_game/04.mob_scene.rst @@ -272,7 +272,7 @@ Here is the complete ``Mob.gd`` script for reference. # We position the mob by placing it at start_position # and rotate it towards player_position, so it looks at the player. look_at_from_position(start_position, player_position, Vector3.UP) - # Rotate this mob randomly within range of -90 and +90 degrees, + # Rotate this mob randomly within range of -45 and +45 degrees, # so that it doesn't move directly towards the player. rotate_y(randf_range(-PI / 4, PI / 4)) @@ -311,7 +311,7 @@ Here is the complete ``Mob.gd`` script for reference. // We position the mob by placing it at startPosition // and rotate it towards playerPosition, so it looks at the player. LookAtFromPosition(startPosition, playerPosition, Vector3.Up); - // Rotate this mob randomly within range of -90 and +90 degrees, + // Rotate this mob randomly within range of -45 and +45 degrees, // so that it doesn't move directly towards the player. RotateY((float)GD.RandRange(-Mathf.Pi / 4.0, Mathf.Pi / 4.0)); diff --git a/getting_started/first_3d_game/07.killing_player.rst b/getting_started/first_3d_game/07.killing_player.rst index d8ed5f8f3..d1fd101b8 100644 --- a/getting_started/first_3d_game/07.killing_player.rst +++ b/getting_started/first_3d_game/07.killing_player.rst @@ -236,7 +236,7 @@ Next is ``Mob.gd``. # We position the mob by placing it at start_position # and rotate it towards player_position, so it looks at the player. look_at_from_position(start_position, player_position, Vector3.UP) - # Rotate this mob randomly within range of -90 and +90 degrees, + # Rotate this mob randomly within range of -45 and +45 degrees, # so that it doesn't move directly towards the player. rotate_y(randf_range(-PI / 4, PI / 4)) @@ -283,7 +283,7 @@ Next is ``Mob.gd``. // We position the mob by placing it at startPosition // and rotate it towards playerPosition, so it looks at the player. LookAtFromPosition(startPosition, playerPosition, Vector3.Up); - // Rotate this mob randomly within range of -90 and +90 degrees, + // Rotate this mob randomly within range of -45 and +45 degrees, // so that it doesn't move directly towards the player. RotateY((float)GD.RandRange(-Mathf.Pi / 4.0, Mathf.Pi / 4.0)); diff --git a/getting_started/first_3d_game/09.adding_animations.rst b/getting_started/first_3d_game/09.adding_animations.rst index 96f1e981b..6f3b602ba 100644 --- a/getting_started/first_3d_game/09.adding_animations.rst +++ b/getting_started/first_3d_game/09.adding_animations.rst @@ -537,7 +537,7 @@ And the *Mob*'s script. # We position the mob by placing it at start_position # and rotate it towards player_position, so it looks at the player. look_at_from_position(start_position, player_position, Vector3.UP) - # Rotate this mob randomly within range of -90 and +90 degrees, + # Rotate this mob randomly within range of -45 and +45 degrees, # so that it doesn't move directly towards the player. rotate_y(randf_range(-PI / 4, PI / 4)) @@ -586,7 +586,7 @@ And the *Mob*'s script. // We position the mob by placing it at startPosition // and rotate it towards playerPosition, so it looks at the player. LookAtFromPosition(startPosition, playerPosition, Vector3.Up); - // Rotate this mob randomly within range of -90 and +90 degrees, + // Rotate this mob randomly within range of -45 and +45 degrees, // so that it doesn't move directly towards the player. RotateY((float)GD.RandRange(-Mathf.Pi / 4.0, Mathf.Pi / 4.0));