playMaker

Author Topic: best solution for crowd based ai  (Read 5054 times)

gamedivision

  • Full Member
  • ***
  • Posts: 227
    • View Profile
best solution for crowd based ai
« on: September 27, 2012, 04:26:48 AM »
i have a crowd that needs to constantly track 1 character during game play,maybe the odd character would stop and roam but the majority would constantly track,the problem is i have stairs and all kinds of obstacles in place,i know we have nav mesh in unity .
what would be the best way to address this
i have ai4 enemies prefab already shall i use that

thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: best solution for crowd based ai
« Reply #1 on: September 27, 2012, 04:50:54 AM »
Hi,

 Are you saying that you want to use something else than the Unity nav mesh system? Or are you looking for solution using that?

bye,

 Jean

gamedivision

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: best solution for crowd based ai
« Reply #2 on: September 27, 2012, 05:12:55 AM »
im looking for what the best posible solution would be,ive been looking at some pathfinding prefabs on the asset store,im wondering if thats the best solution

gamedivision

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: best solution for crowd based ai
« Reply #3 on: September 27, 2012, 01:43:27 PM »
so looking at the pathfinder stuff,it creates a mesh that the enemy follows ,could i access the navmesh that unity creates,so my enemy can follow

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: best solution for crowd based ai
« Reply #4 on: September 27, 2012, 11:16:50 PM »
Hi,

 not sure what framework you are using when mentioning "pathfinder"

bye,

 Jean

gamedivision

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: best solution for crowd based ai
« Reply #5 on: September 28, 2012, 03:39:53 AM »
iphone4 and above and ipad.i downloaded the free version of A* Pathfinder and that detects surfaces and lays out a mesh then your enemy can work out a route to find you.plus its mobile compatible,my biggest problem,i cant program,so i have to find another way of getting to my goals,so if i can find an efficient way of combining a pathfinder with an AI system which we have already had tutorials on then its sorted.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: best solution for crowd based ai
« Reply #6 on: September 28, 2012, 03:50:02 AM »
Hi,

 Unfortunalty, I do not own that system. Pm me if you want to port this to playmaker. I have ported the unity built nav mesh and path finding system, and I think it would be good for the community is they can get an this alternative when they do not own Unity pro

bye,

 Jean

gamedivision

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: best solution for crowd based ai
« Reply #7 on: September 28, 2012, 07:54:05 AM »
here is the website
http://www.arongranberg.com/unity/a-pathfinding/
here is the page to download the free version
http://www.arongranberg.com/unity/a-pathfinding/download/
and here is the full documentation
http://www.arongranberg.com/astar/docs/
the free version comes with loads of demo scenes and the full version of the pathfinder,this really is one of the greatest free downloads.
check out the demo scene you move your character anywhere in the scene it will automatically generate a route to you no matter where you are, upstairs, blocked routes,behind obstacles 
thanks
« Last Edit: September 28, 2012, 07:58:37 AM by gamedivision »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: best solution for crowd based ai
« Reply #8 on: September 30, 2012, 10:30:44 PM »
Hi,

 did not spot that it had a free version! I will see what it's all about, thanks for the link.

bye,

 Jean

gamedivision

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: best solution for crowd based ai
« Reply #9 on: October 01, 2012, 05:20:08 AM »
Hi jean
Do you have the link to the ported version of Unity pathfinder tool I'd like to read what you've done.

Thank you

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: best solution for crowd based ai
« Reply #10 on: October 02, 2012, 02:55:20 AM »

gamedivision

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: best solution for crowd based ai
« Reply #11 on: October 02, 2012, 01:40:31 PM »
thank you jean