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 thetemplar · Dec 09, 2014 at 07:09 PM · pathfindingavoidance

Deterministic Pathfinding

Hello,

I currently am working on a multiplayer RTS (using lockstep), and now am stuck with local avoidance in pathfinding.

How is it managed to calculate the paths of dozens of units without bumping into each other? Pathfinding itself is working like a charm (with lockstep principles used), but my units have no collision to each other so far, so they can run through other units. Every solution I have seen so far is using physic-collision with rigidbodys. But I don't want to have this solved by a physics engine I don't trust to be deterministic, so I need some kind of algorithm. I checked out "A* Pathfinding Project" and "Simple Path", which are working well without avoidance, but I don't know how to add code/alter code to make the collision detection non-physical.

Am i missing something basically here?

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

1 Reply

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

Answer by tanoshimi · Dec 09, 2014 at 07:22 PM

Unity Answers is for specific technical questions; questions that require extended discussion are generally better suited to the Forums. Having said that, here's some suggestions off the top of my head:

  • When a collision with another unit is detected, pause for a short, random amount of time before attempting to resume the planned route. If after two successive attempts a unit can still not follow its planned path, get it to recalculate a different route.

  • Assuming your colliding units are all on the same team, and can therefore communicate and share their intended paths with one another, this is a nice description of a co-operative pathfinding approach: http://www0.cs.ucl.ac.uk/staff/D.Silver/web/Applications_files/coop-path-AIWisdom.pdf

  • If you're using A*, you can adjust the cost heuristic to assign more weight to routes that pass close to other units (and are therefore more likely to get blocked).

  • Or simply layer some avoidance steering behaviours on top of the movement resulting from the pathfinding.

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 thetemplar · Dec 09, 2014 at 07:29 PM 0
Share

Hey, where would be the right place in the forums to post a qustion like that? Because there are so many subforums, I decided to post here....

And thanks for the answers

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

25 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

Related Questions

How do i get the IsPathPossible() function to ignore some nodes using Astar Pathfinding Project 0 Answers

Navmesh Agent avoidance with as triggers 1 Answer

How do i get the IsPathPossible() function to ignore some nodes using Astar Pathfinding Project 0 Answers

How to combine NavMesh Agent with Character Controller 0 Answers

How to avoid objects while following a random path? unity 2d,How do I avoid objects while following a set of nodes randomly? unity 2d 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