Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
avatar image
0
Question by morganlining · May 23, 2018 at 08:06 AM · navmeshpathfindingnavigation

How to implement the flying AI path finding?

I want to implement the flying navigation in 3D space with NavMesh. I searched a lot but still can't find a method to implement it. I found a video in youtube: https://www.youtube.com/watch?v=RkrC0PopskM it's really cool and it's what i really wanted!

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 Captain_Pineapple · May 23, 2018 at 09:17 AM 1
Share

depends on what you want to achive with your project. In case you have an open setting like a field or a city with blocks of buildings that you want to navigate around you could simply take a nevmeshagent on a unity navmesh and have your plane attached to it with an y-Offset. Then you only need some basic script to handle y-$$anonymous$$ovement depending on how it should behave. I guess this way could be not applicable if you have a lot of tunnels and so on which cross over each other since the calculation of the y-Offset might prove to be problematic. From the video i'd say the guy who did that build some basic waypoint system. The "planes" in that example consist of 2 points. Point A which just striclty follows the waypoints. Point B, the acutal "plane", which just moves towards point A with a bit of distance. This way you get a smooth movement curve without any sharp edges. But you are limited to flying next to the given movement lines/waypoints.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by oussamahassini6 · May 23, 2018 at 09:54 AM

you can watch this video it's really helpfull and clear I tryed it my self....... https://www.youtube.com/watch?v=CHV1ymlw-P8 please a good vote @morganlining

Comment
Add comment · 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
0

Answer by morganlining · May 25, 2018 at 01:07 AM

@oussamahassini6 @Captain_Pineapple Thanks for your reply. Actually, I need to navigate hundreds of drones to the different destinations. I think the Navmesh which using A* algorithm is difficult to handle it. I think Reinforcement learning is a good solution after some researches. And, Unity just published the ML-agents framework! link text

Comment
Add comment · 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
0

Answer by ankuragrawal · Nov 14, 2018 at 05:46 PM

@morganlining Were you able to train your agent for flying using Unity's ML-Agents? I'm trying to do something similar and wondering what was your approach.

Comment
Add comment · Show 1 · 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 morganlining · Nov 15, 2018 at 01:17 AM 0
Share

I tried, but it was not working well. I plan to navigate the drone in 3D space so that I need 3D data as input. What i try to do is a little complex, and $$anonymous$$L-agents can't fix my problem. If you want to do the navigation in 2D space, I think you can training with $$anonymous$$L-agents. If the situation is complex, I prefer you to implement the algorithm with python and tensorflow. And that's what i am doing now.

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.

Follow this Question

Answers Answers and Comments

90 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

Related Questions

Navigation Mesh + Doors 0 Answers

Getting a navmeshagent back on a navmesh. 1 Answer

I want to create path finding solution like Visioglobe Indoor navigation map The Dubai Mall link to video--> https://www.youtube.com/watch?v=ziZA5ia4uEk 1 Answer

Navmesh on all sides of an object? 0 Answers

NavMesh.SamplePosition returns point outside the NavMesh 0 Answers


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