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
1
Question by Uriel_96 · Jan 07, 2011 at 06:12 PM · javascriptaionlinealgorithm

Online Advanced AI(Artificial Intelligence) with JS

Hi, Know my question is where can I find Advanced AI because I only can find web sites that says the enemy health, how to follow you, and another things that are simple but know I want something complicated, like algorithms but what I actually want is something like not using any way-points that mines not algorithms so I want the enemy follow me in a strategic way like cover and shoots then he start moving and finally get to me. But the question is that where I can find something like this using JavaScript or if is a little bit complicated to find with JS is Ok in C#.

But please I need lot of answers. I will really appreciate it. Thanks in advance :P

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

3 Replies

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

Answer by Justin Warner · Jan 07, 2011 at 06:23 PM

UnitySteer, AngryAnt (Path Behave), and Custom are your real options...

http://angryant.com/path

http://angryant.com/behave

http://www.arges-systems.com/articles/35/unitysteer-steering-components-for-unity

That's what is made.

To do custom, you're going to have to go by what you know... It is, in my opinion, the only thing Unity really needs to be a solid game engine.

Comment
Add comment · Show 6 · 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 Uriel_96 · Jan 07, 2011 at 06:31 PM 0
Share

sorry I don't understand it well, in this web sites is for download scripts?

avatar image Statement · Jan 07, 2011 at 06:31 PM 2
Share

Don't forget arons a* pathfinding www.arongranberg.com/unity/a-pathfinding/

avatar image Justin Warner · Jan 07, 2011 at 06:33 PM 0
Share

AI isn't very supported in Unity. Like, if you're doing a FPS, you can do something like, enemy looks at you, waits a second, then shoots, with an accuracy of ___ that changes its angle, and so it sometimes hits, sometimes doesnt, or you can use a random number generator. In other words, their is no real good way to do it, you'll have to custom code it most likely. These are solutions/packages/plugins others have made. You'll have to read them, rather than just copy paste.

avatar image SrBilyon · Jan 07, 2011 at 06:40 PM 2
Share

Isn't very supported? Don't you mean not really given upfront? AI is depended on the programmer, correct? :D

avatar image Statement · Jan 07, 2011 at 06:51 PM 1
Share

AI solutions seems to depend more on the problem, not the programmer. You can't use a chess AI (with its specific heuristics) on a FPS style of game, and not FPS style AI with racing games. The way I see it is that the AI is very specially tailored toward the specific problem they are trying to solve. There are also self learning AI that might be able to become reusable across a wide set of problems, although it is probably not the optimal solution.

Show more comments
avatar image
3

Answer by Statement · Jan 07, 2011 at 06:36 PM

I suggest you pick up a solid nice book about AI. No really - I mean it.

I just recently bought a book myself to give myself more of an edge with AI. There is no out-of-the-box smart AI that unity provides. You'll have to get third party libraries and addons or write some yourself. AI is a complicated topic but so is rendering and physics so don't let that put you off from learning it. You'll find though that advanced ai use waypoints (or nodes) quite heavily to navigate the world. Some AI use this "nagivation mesh" to find places such as cover, health or ammo. I wish I could give you something solid to nibble on but I think the best thing would be to get yourself a book, like Game Programming AI By Example (I heard it was good, I have bought Artificial Intelligence - A Systems Approach).

"Real" AI is way more advanced than following a path or steering away from obstacles. You need to consider planning, estimating opponents move and really an at first bewildering set of options. Then you probably need to optimize the algorithms with heuristics to prune options that are clearly uesless. In short - it's a large topic :)

Treat yourself with a book. You wont regret it :)

Comment
Add comment · Show 4 · 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 Uriel_96 · Jan 07, 2011 at 06:46 PM 0
Share

the thing is that what I don't want way points is because there only giving patterns of where to go what I am thing is that use the way points only as a guide but not as a way to go. And thanks but only 2 question, what is the name of the book and where I can find it?

avatar image Statement · Jan 07, 2011 at 06:54 PM 0
Share

I bought $$anonymous$$e off Amazon but I bet there are cheaper places. I don't recommend the ebook one I got, I didnt get a companion CD and the images were of horrible quality, so if you would ask me I'd say go for the hardcover/paperback version. I listed two books in my answer.

avatar image Statement · Jan 07, 2011 at 06:56 PM 0
Share

I kind of like the book I bought (Artificial Intelligence - A Systems Approach) but the code is horrible (old C code with inconsistent styling makes it hard to understand). It seems to be more practical and code oriented than I hear many other books are. You need a basic knowledge about data structures such as Queues, Stacks and Trees but the book explains them briefly. You might want to learn more about data structures first if you have trouble with them.

avatar image Statement · Jan 07, 2011 at 06:59 PM 1
Share

The waypoints/nodes in themselves are quite boring. What you need to do is iterate through them to find paths to some interesting places. But to know what is interesting place, you need to make a decision, and the AI makes the decision based on the known state of the game through some sort of $$anonymous$$imax algorithm.

avatar image
0

Answer by Uriel_96 · Jan 10, 2011 at 11:46 PM

I just got a good web page that is awesome to start learning more about Advanced AI and all of path, algorithms, etc.. here is the page: http://www.ai-blog.net/archives/000152.html but thanks any way for all your help

The page of arons a* was awesome and really helpful the only bad thing is that I was planning doing the script by my self and is difficult to learn that because is a lot of code but thanks anyway. :P

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

1 Person is following this question.

avatar image

Related Questions

A* optimization and path help 0 Answers

Problem using boids algorithm for chasing enemies. 1 Answer

Modifying AI script to follow gameobject 1 Answer

ai navigation help 0 Answers

AI navigating all 6 sides of a cube 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