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
3
Question by anilkan · Mar 28, 2013 at 07:18 PM · pathfindinggraphastar

Pathfinding with 2 different Graph for 2 different AI at the same time

I use Aron Granberg's AStar scripts. I want to use 2 different graphs at the same time for two different AI.

I will generate two grip graphs, ones Collision Testing -> Diameter value is 6, other's is 2. Because i have two different sized AI and if i use diameter setting small, big AI pass through obstacles inside.

Because of this, i want to use two different graphs. Is it possible ? Or there are any other solutions ?

Comment
Add comment · Show 4
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 Sisso · Jul 27, 2015 at 12:59 PM 0
Share

@anikan, if @Xystress answer you question, please accept it.

avatar image Hexer · Jul 27, 2015 at 01:04 PM 0
Share

Anilkan last seen Jun 17, 2014 at 12:46 A$$anonymous$$ I don't think he is active anymore. This is a post from almost 2 years ago with an answer from 1 year old.

avatar image Sisso · Jul 27, 2015 at 01:11 PM 0
Share

Yeah, not have been seen since 2014 is a problem. But don't change the fact that is probably answered, but i didn't have the power to accept it.

avatar image anilkan · Jul 28, 2015 at 07:18 PM 0
Share

Okey guys. I didn't see any email about answer and as you said, i didn't active on forum. I don't have medium to check answer is correct, but i accept it.

1 Reply

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

Answer by Xystress · Feb 19, 2014 at 12:41 PM

I've been diving into this for a bit of time. I know that this post is old but in the case someone still have this issue I managed to get it working :

Instead of using the seeker StartPath method this way

_seeker.StartPath(transform.position, rh.point, OnPathComplete);

Use the 4th parameter graphMask to tell which graph you want to use for this seeker.

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

13 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

Related Questions

Arongranbergs Astar DynamicGridObstacle deletes nodes from gridgraph 0 Answers

Update Graph after GameObject destruction 1 Answer

Optimizing A* pathfinding (not the A* project!) 1 Answer

A* pathfinding: neighbor list not updating 0 Answers

A* pathfinder - next target 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