Forum rules - please read before posting.

NavMesh

edited April 15 in Technical Q&A

Hello,

I'm fairly new to the AC engine. I actually grabbed it a few years ago but only recently found the time to finally start using it. So, apologies in advance if I ask anything in the wrong way!

Just a note: my Unity knowledge is also very basic—I’m only familiar with the most simple operations and not much beyond that.

My question is about NavMesh. Today I managed to create a character, set up the animations, and was really happy to see everything working! But then I placed my character (PlayerStart) on a simple plane mesh with the NavMesh Surface component added, baked it, and… the character doesn’t move. Also im using unity 6 and i followed the instruction from the unity navigation pathfinding updated tutorial and i did exactly as instructed.

I also tried this using the original AC sample character, and the issue is the same—they won’t move.

I’d really appreciate any help or guidance on this—thank you so much in advance!

Comments

  • Welcome back, @priabudiman! What's your AC version?

    To be clear, this is for a 3D, point-and-click game? To move with a baked NavMesh, you'll need to ensure these conditions are true:

    • The Scene Manager's Pathfinding method is set to Unity Navigation
    • The floor collider is on the NavMesh layer
    • The character's Animator only has Apply Root Motion checked if their animations are reliant upon root motion

    You can test if the character can move in general around the scene, separate to the use of point-and-click, by placing down a separate Marker in the scene, and running the Character: Move to point Action in your OnStart cutscene to have the Player move there.

  • edited April 16

    thank you so much Chris,

    the AC version is 1.83.0 latest one from package manager.
    and check, its on the NavMesh layer for sure!
    and damn... that Root Motion, i gave it a try and now the character is animating, but still, it walk in place as its not moving.

    I will give the Move to point a try!

  • that Root Motion, i gave it a try and now the character is animating, but still, it walk in place as its not moving.

    To be clear: I'm suggesting to uncheck this if the character isn't moving.

    Does the floor have a collider?

    You can try importing the 3D Sample Scene from the New Game Wizard - that should provide a working NavMesh to compare with. It's pre-baked (no Surface component), but that shouldn't be a factor.

  • The problem is on the floor mesh apparently, theres something broken that the navmest not generated/baked properly. I managed to just use basic plane mesh from unity and it works. I recreated the original mesh and now its working.

    but yes, the unchecking made the character actually walk around within the navmesh area.

  • edited April 17

    @priabudiman If your knowledge is very basic, I'd recommend doing the official Unity Tutorials in addition to AC, they are well made and will help you understand the Engine better (and will make you way quicker, and more confident whilst using it).

    https://learn.unity.com/pathways

    Essentials, Creative Core and Junior Programmer should be the go-to's.

  • @miko

    Thank you, I'm currently on it, more problems are solved while I'm at it, it's good that started there.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.