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
2
Question by Samir 1 · Jan 19, 2011 at 08:41 PM · aipathfindingtower-defense

where can i learn c# pathfinding?

im making a tower defence game, where can i learn how to code pathfinding, any tutorials? or can anyone start me off with a little code? thanks.

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

4 Replies

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

Answer by Jesse Anders · Jan 19, 2011 at 09:07 PM

Pathfinding usually requires more than 'a little code', so it's unlikely you'll get any complete code samples here. However, there's at least a couple of third-party pathfinding libraries available that work with Unity that might meet your needs. (Search the forums for 'pathfinding library' and you should find them.)

Beyond that, pathfinding is a general topic that isn't tied to Unity or any specific programming language, so you can find info on it just about anywhere. Also, note that there are many different approaches to pathfinding, and which will work best will depend on the context. So, if you need more specific advice, it would help if you could provide more information about the setting. (For example, what's the environment like? Is it grid-based? What sort of obstacles are there? And so on.)

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 Samir 1 · Jan 19, 2011 at 10:55 PM 0
Share

ok, i understand man. thanks :) to be honest right now i just want to know the basics eg, move the ai in a simple path like left, down then right and so on just on a simple flat surface. just so i know what i need to make the ai move. not considering any obsticles at the moment. i heard about waypoints so i think ill start there. thanks for the info :)

avatar image fireDude67 · Jan 19, 2011 at 11:37 PM 0
Share

Then that is not really pathfinding as you are not finding a path, just following waypoints. Then I would recommend iTween or something.

avatar image
3
Best Answer

Answer by yoyo · Jan 20, 2011 at 07:40 AM

Your path starts here.

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 Samir 1 · Jan 20, 2011 at 03:33 PM 0
Share

ok thanks guys, yeh i understand waypoints isnt pathfinding now lol.

avatar image
0

Answer by systemoutprintln · Nov 06, 2012 at 06:58 PM

Here is some basic code you should start of with. public class pathfinding{ }

good luck.

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 Daten · Nov 06, 2012 at 02:57 PM

Look up A* Pathfinding, its free and a good simple library to use!

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

2 People are following this question.

avatar image avatar image

Related Questions

Movement around a huge object by avoiding obstacles 1 Answer

Aron Granberg's A* seeker goes back and forth if a smooth modifier is attached. 0 Answers

Restricting NavMesh path finding directions 1 Answer

A* pathfinding for 2D top Down 0 Answers

Why isn't a Ai Waypoint Spawning??? 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