How to change speed of agent traversing off-mesh-connection? #445
-
Hey, I can detect when an agent is traversing a so-called off-mesh-connection via But how can I change its speed? Setting the parameters |
Beta Was this translation helpful? Give feedback.
Answered by
isaac-mason
Nov 27, 2024
Replies: 1 comment 1 reply
-
I suppose I could remove the agent, move it manually across link, then request the navPath again. I could also try But it would be nice to do this without re-planning. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @rob-myers, unfortunately to the best of my knowledge recastnavigation currently doesn't have great support for customising traversal across off mesh links.
From reading recastnavigation google discussions and github issues, it seems most have to resort to modifying DetourCrowd code to add their own handling.
In the library the handling is a lerp between the two points, and it appears the lerp is time based, and only considers the agents max speed once when triggering moving over the offmesh connection.
Some relevant links to DetourCrowd code: