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 clay · Mar 09, 2011 at 04:14 AM · pathfindinggridpathgraph

grid pathing system

hey guys! i got a bit of a weird one. i have created a grid and i managed to create a code that allows the user to choose a start and an end inside the grid. i made a simple vehicle that normally is only able to follow a specified target. what i need now is for that vehicle to find its target ( the start and end). then it needs to follow that path then turn around and stop right back where it started at start.

originally my idea was to just switch the game object target with the code for starting and end when i realized i didn't know how to do that...the code is way too long to throw in unity answers.

am i on the right track or is their a better way?

Comment
Add comment · Show 1
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 TowerOfBricks · Mar 10, 2011 at 05:33 PM 1
Share

Perhaps you could tell us which pathfinding library you are using, that would make things a lot easier.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by clay · Mar 13, 2011 at 08:29 PM

really? did i do a bad job explaining or something?

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 Statement · Mar 13, 2011 at 08:41 PM 0
Share

I'd say it's a bit unclear. Start and end, is it a straight line or is it a path? Do you use pathfinding? Is that what you mean by "follow a specified target"? What is "target", is it a point in the grid or some object that is located on the grid? And please answer comment replies ins$$anonymous$$d of writing an answer. There is a small "add comment" link just below your question.

avatar image clay · Mar 16, 2011 at 07:45 PM 0
Share

did see it. isnt a straight line nothing more then a path to begin with? yes, it uses path finding. target used to be a gameobject. now itneeds to be what i guess we can all a node on the grid... you choose the node inside unity ins$$anonymous$$d of inside the code.but the targetting needs to happen in the code ins$$anonymous$$d of inside unity

avatar image clay · Mar 16, 2011 at 07:47 PM 0
Share

didnt see it* phone auto corrected aug

avatar image clay · Mar 16, 2011 at 07:48 PM 0
Share

i guess its breath first path finding.. which is done. i just need something to make the vehicle find the path to the target.

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

No one has followed this question yet.

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Grid-based path-finding, similar to Legend of Grimrock/Eye of the Beholder... 2 Answers

ai pathfinding project getting started scene problems 1 Answer

Create spaceship attack logic [and other logic eventually] 1 Answer

Path system or Predetermined paths for Camera Fly-throughs / Ladder climbing / etc 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