How do I set up the navmesh agent's pivot? height not working

As you can see from the title, I want to make Navmesh’s agent height bigger.
It seems that the pivot is held in the center and buried halfway on the floor.

Is it a problem that can’t be solved just by increasing the height, which is the default parameter value, when I set the pivot up?

https://playground.babylonjs.com/#X5XCVT#402

@Cedric

Adding @Cedric the navmesh author :slight_smile:

thanks!

Cube mesh origin is its center. Change its Y offset to half of its height so it will touch ground without getting in the ground.

Check line 60

Crowd navigation within a navmesh | Babylon.js Playground (babylonjs.com)

1 Like

I was wandering around because I’m not used to it yet, but thank you so much for your help!

1 Like