- A* version: 5.3.8
- Unity version: 6.2
I have an object like this whose height is lower than agent’s step height. Is it possible to make the agents walk on it?
I have an object like this whose height is lower than agent’s step height. Is it possible to make the agents walk on it?
Yeah it is, should be decently simple. What movement script/graph type are you trying to do this on?
Recast graph and RichAI
Hi
The navmesh will be generated across that object. It may not be raised up, but from a navigation perspective it will work just fine.
However, you also need to ensure that your character can actually traverse the step. Otherwise, it may get stuck on it. For the RichAI, that usually means that the character height needs to be at least twice the step height (since its internal ground raycast starts at the center of the agent).
I don’t understand. The character’s height is 2.6, the max step height of the graph is 0.5, the object’s height is 0.4, and nevertheless the character doesn’t step up on it.
Can you post a screenshot of your navmesh?
Solved the problem with the first agent type. Don’t remember how, maybe set rigidbody to kinematic.