- Home /
Interactable object as navmesh obstacle.,How can I make an object interactable while it's a navmesh object?
Hey
I'm following Brackeys' RPG guide for Unity, but I'm using my own models (world and such) and I ran into a problem. I'm trying to make point and click game and I'm trying to make a tree interactable and I also want to make it a navmesh obstacle. Now I can get them to work IF I only use one of them, as in I can make it an interactable OR I can make it an obstacle, but I can't make them both work. Individually they work perfectly, but not together. There must be a way to do this, but I cant figure it out.
More info: To be clear, it does work, but not exactly like it's supposed to. In the pictures, the red gizmo ring is the radius in which the interaction can be done. But for some odd reason, my character goes to the other side of the tree to begin the interaction, even if the character is in the radius. This only happens on one side of the tree. For example, if I approach the tree from the east, it works almost perfectly, but if I approach from the west, it tries to around the tree, to the east, and then start the interaction.
I added some pictures of the components to imgur. My playercontroller, playermotor and interactable scripts are the same as Brackeys'.
Tell me if you need more information
Thanks in advance :)
Your answer
Follow this Question
Related Questions
NavMeshPath.corners.length is always 0 1 Answer
NavMesh issue with spawning players 3 Answers
Unity Navagation Ground Mapping 1 Answer
How would I simulate a rectangular Nav Mesh Agent? 0 Answers
Duplicated NavMesh Agents not moving 0 Answers