Jump to content
  • Advertisement
Sign in to follow this  
anupgupta

Path Following

This topic is 2561 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello everyone

I am currently working on a game which requires my car to follow a dedicated path (which could be of any shape i.e straight , curved etc)..i would like to know some sort of a possible algorithm which could suit the need
any kind of help is highly appreciated

Regards
Anup

Share this post


Link to post
Share on other sites
Advertisement
This is commonly known as "steering." A quick google for Craig Reynolds should turn up some good introductory resources.

Share this post


Link to post
Share on other sites
Easiest implementation:

Find a point in front of the car
Find the closest point on the path from that point
Turn car towards the closest point

The steps should be easily googlable if you're having trouble. There is a steering behaviour for this exact purpose.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!