- Home /
how to make navmesh agent can jump to high object
i want to make navmesh agent can jump to high object,i generate offmeshlink but when i bake offmesh link just make down direction and not upward direction,i use another solution to make offmeshlink manualy and its work, but quite troublesome to make it one by one for each object
so how to make navmesh agent automatically jump on high object
The Off$$anonymous$$eshLink has a BiDirectional tick, tried that?
Ahh i see on doc bidirectional can link be traversed in both directions.but how to do that with all object with offmeshlink,i make script to foreach all object with offmeshlink but not work this my code
void Start () {
Off$$anonymous$$eshLink[] links = FindObjectsOfType(typeof(Off$$anonymous$$eshLink)) as Off$$anonymous$$eshLink[];
foreach (Off$$anonymous$$eshLink i in links) {
i.biDirectional = true;
}
}
Answer by imaginationrabbit · Jul 29, 2018 at 04:28 PM
Here's a solution to that I created that doesn't use Offmesh links- it uses DoTween instead
Here's the unity package with the scripts
Hope its helpful-
Your answer
Follow this Question
Related Questions
Is it possible to have a navmesh agent that ignores obstacles? 1 Answer
Ignoring or overruling a NavMeshAgent destination 0 Answers
CS0246: The type or name space name ''NavMeshSurface'' plz some help 0 Answers
Possible to edit the movement of NavMeshAgent ? 2 Answers
Find the nearest location and move to a target outside Navigation Mesh? 1 Answer