Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • 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 /
This question was closed Nov 09, 2017 at 06:09 PM by DaniilGalahow for the following reason:

Проблема не воспроизводится или устарела

avatar image
0
Question by DaniilGalahow · Jul 18, 2017 at 07:58 AM · movementenemynavmeshagent

Enemy stops when player on higher place

Hello all. I am making a simple 3D shooter as tutorial project. I create an enemy, and add to it a NavMeshAgent and standart AI Character Control script, then set player as target to AI Character Control. While enemy is alone, all works fine, it chase player as I want, if I jump on higher place, it starts to run around that place. Then I add another enemy (a copy of first). And here is a problem. While I'm on same surface with enemies, all works fine, they chase me. But when I jump on a higher place (on a box, for example), enemies stop moving. Why they stops and how to fix this?

Comment
Add comment · Show 1
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
avatar image kaedendingoltz · Jan 19 at 08:19 AM 0
Share

Hey i am having the same issue did you find the answer?

1 Reply

  • Sort: 
avatar image
0

Answer by ZeN12 · Jul 18, 2017 at 08:03 AM

Enemies move along the NavMesh, if you jump on box (where is no NavMesh), enemy can go in wrong direction. Try to find how to add box to a nav mesh.

Please check this tutorial: https://www.youtube.com/watch?v=w3-sSozYph4

Comment
Add comment · Show 2 · Share
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
avatar image DaniilGalahow · Jul 18, 2017 at 08:17 AM 0
Share

No, that's not it. I already made an Off$$anonymous$$esh Links, and on a top of the box Nav$$anonymous$$esh already exist. Here is screenshot with example

avatar image ZeN12 · Jul 18, 2017 at 08:42 AM 0
Share

Not sure why it works like this, as option you can add an if-statement. Where you check distance between player position and target position (where AI goes). And of it's too bug, just stop the AI.

Follow this Question

Answers Answers and Comments

97 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to make enemies stop a certain distance away? 2 Answers

Implement moveSpeed to this object script? 1 Answer

Enemy shaking when following player 2 Answers

Root motion handled by script. How to still use root motion with disabled navmesh agent? 0 Answers

Can't get player to walk to object using NavMeshAgent 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges