This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT licenced. Feel free to use in your project. | |
# Use recursion to move along path. We move along path, and if there's any | |
# distance remaining, we call this function again and move further along until | |
# we reach our destination or there's no distance left to travel | |
func move_along_path(distance : float) -> void: | |
# Ensure we have an actual path, otherwise we are done and can stop | |
# processing | |
if path.size() == 0: | |
set_process(false) | |
return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge eol=lf | |
*.anim merge=unityyamlmerge eol=lf | |
*.unity merge=unityyamlmerge eol=lf | |
*.prefab merge=unityyamlmerge eol=lf |