Lucas
Lucas

Reputation: 69

Strange NavMesh baking with huge voxels

I'm trying to use Navmash for path finding in my prototype but I'm having a problem because the "lines" the Agent will end up when it get close enough to the objective are hugely spaced out.

Image: enter image description here

The red square is where the cube should end up in but as you can see, the voxel line the Agent is upon is in the middle of the square. Any clues on how to fix it?

I've set the Voxel size to the minimum value (0.02) and the outcome is still the same.

Thanks!

Upvotes: 0

Views: 322

Answers (1)

Lucas
Lucas

Reputation: 69

I'm just stupid. In the vector3 I sent to the SetDestination method, the Y and Z coordinates were swaped.

Upvotes: 1

Related Questions