• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Kveisar · May 30, 2018 at 04:16 PM · navmeshnavmeshagentnavigationinteractionnav mesh

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'.

https://imgur.com/a/k9xtvNF

Tell me if you need more information

Thanks in advance :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

89 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

Navmesh Agent "move back" when player comes to close? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges