Player floating after nav mesh added

My player appears to be floating after I add the nav mesh. Anyone else had this?

1 Like

Hi @Stephen_Crookes,

Yes, I have experienced this also.

If you run your game, select your Player in the Hierarchy and check the Inspector, the Transforms Y position will be fractionally positive, in my test here it was 0.083333338.

Stop the game, and with the Player selected in the Hierarchy, scroll down to the NavMeshAgent component, you can enter the inverse of this in the Base Offset property, so in my test, -0.08333338.

Hope this helps :slight_smile:


See also;

4 Likes

Thanks @Rob, I’ll try this when I get in from work this evening.

1 Like

No problem :slight_smile:

Hello everyone.

I have a strange bug regarding the enemy animation.
Code wise everything runs OK, the enemy is detecting me when I enter the attackRadius variable, and he is running towards me, but the enemy is rotating in the Y axis like crazy, is funny, but the run animation is not displaying correctly.

I’ve re done the segment several times to be sure I followed all the steps, and I can’t see anything code wise that goes wrong.

In the next segment, player also moves with nav mesh and the same problem is happening to my player run animation.

Plz help.

Thank you.

Privacy & Terms