Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 AndreasC · Jan 13, 2015 at 08:29 PM · pathfindingnavigation

Best pathfinding for large open world

Hey !

I'm working on a large open world game, where the player can set up shelter. If I'm correct, Unity requires all gameobjects to be static for the built in navigation to work ? If so, can I instantiate the shelter and then make it static, or do I need a dynamic alternative ?

And it needs to be suitable for a large open world, I've seen many examples on alternatives but only on 20x20 maps. Any ideas ?

Comment
Add comment · Show 2
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 skylem · Jan 13, 2015 at 08:41 PM 0
Share

im not entirely sure if i understand the question what is the particular use case for your pathfinding? do u want the player to be able to navigate to/from the shelter?, there are alot of methods of path finding and it would definitely help to know exactly what it is your trying to achieve.

avatar image AndreasC · Jan 13, 2015 at 08:44 PM 0
Share

Hey !

Sorry for the poor description. I want AIs to roam to certain waypoints with pathfinding, and when the user gets close to the AI I want the AI to follow the player also with pathfinding.

4 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Anxo · Jan 13, 2015 at 08:52 PM

Objects do not all have to be static to block pathfinding. If you are talking about Nav Mesh, you can use NavMesh Obstticles to have AI avoid the objects. http://unity3d.com/learn/tutorials/modules/beginner/navigation/navmesh-obstacles

Alternatively, you can always just write your own AI using raycasts.

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
-1

Answer by ROLLERROCK · Jun 08, 2015 at 03:11 PM

Hi,

actually i think that for an open world game pathfinding wouldn't be the best solution i recommend you experiment with waypoints(predefined or random) or random movement ie altering its path with the obstacles which come its way.

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 Cherno · Jan 13, 2015 at 10:25 PM

If you use Aron Granberg's Astar Pathfinding Project, you can assign any mesh, including procedurally generated ones, to it's NavMesh graph at runtime. You can also combine meshes beforehand to make a bigger one for that purpose.

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 AndreasC · Jan 14, 2015 at 10:39 AM 0
Share

Can you link or explain how A* Nav$$anonymous$$esh graph works ? I've checked A* site, but couldn't fully understand it ? Do you have to make the terrain in a 3D program and then export it to Unity ? Thanks for the suggestion !

avatar image Cherno · Jan 14, 2015 at 12:00 PM 0
Share

Link

It's "Astar", not A*. A* is just the general algorithm, the Astar Pathfindign Proejct is Granberg's implementation for Unity. As I wrote in m,y first comment, you can use any existing mesh for the a Nav$$anonymous$$esh graph, or create one at runtime and pass it to the graph, it doesn't matter as all graphs can be updated at runtime.

avatar image
0

Answer by Reinholdt · Jan 14, 2015 at 12:58 PM

Hi AndreasC

Apex Path could be another solution https://www.assetstore.unity3d.com/en/#!/content/17943 it supports adding and removing dynamic obstacles and works with procedural worlds! plenty of tutorials to get started http://apexgametools.com/apex-path-tutorials/

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

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

30 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

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

How can I access the scene's NavMesh in code? 0 Answers

How to build a custom shape NavMesh Area 1 Answer

Movement and animation 1 Answer

iPhone build doesn't copy existing files in Application.dataPath or .persistantDataPath?! 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