Browse Source

Merge pull request #6985 from CordellierPaul/patch-1

Changing PathFollow to PathFollow3D in "your first 3D game"
Max Hilbrunner 2 years ago
parent
commit
7677147452
1 changed files with 1 additions and 1 deletions
  1. 1 1
      getting_started/first_3d_game/05.spawning_mobs.rst

+ 1 - 1
getting_started/first_3d_game/05.spawning_mobs.rst

@@ -250,7 +250,7 @@ Let's code the mob spawning logic. We're going to:
 
 
         // Choose a random location on the SpawnPath.
         // Choose a random location on the SpawnPath.
         // We store the reference to the SpawnLocation node.
         // We store the reference to the SpawnLocation node.
-        var mobSpawnLocation = GetNode<PathFollow>("SpawnPath/SpawnLocation");
+        var mobSpawnLocation = GetNode<PathFollow3D>("SpawnPath/SpawnLocation");
         // And give it a random offset.
         // And give it a random offset.
         mobSpawnLocation.ProgressRatio = GD.Randf();
         mobSpawnLocation.ProgressRatio = GD.Randf();