navmeshagent
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
navmeshagent [2022/02/19 16:53] – Created the NavMeshAgent page and filled in the information about remainingDistance function returning wrong value 77.169.189.85 | navmeshagent [2025/01/15 04:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== NavMeshAgent.RemainingDistance | + | ====== NavMeshAgent ====== |
+ | |||
+ | ==== NavMeshAgent.remainingDistance | ||
This function does only respond with the current remaining distance if the path is straight. | This function does only respond with the current remaining distance if the path is straight. | ||
- | It will thus return null or infinite instead of the correct distance. | + | It will thus return null or infinite instead of the correct distance |
There is a way to calculate the real distance by combining all calculated paths but keep in mind that this is performance heavy. | There is a way to calculate the real distance by combining all calculated paths but keep in mind that this is performance heavy. | ||
- | Example | + | First example on [[https:// |
<code csharp> | <code csharp> | ||
public static class ExtensionMethods | public static class ExtensionMethods |
navmeshagent.1645289636.txt.gz · Last modified: 2025/01/15 04:35 (external edit)