Merge pull request #6985 from CordellierPaul/patch-1

Changing PathFollow to PathFollow3D in "your first 3D game"
This commit is contained in:
Max Hilbrunner
2023-03-20 02:40:09 +01:00
committed by GitHub

View File

@@ -250,7 +250,7 @@ Let's code the mob spawning logic. We're going to:
// Choose a random location on the SpawnPath.
// 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.
mobSpawnLocation.ProgressRatio = GD.Randf();