Sign in to follow this  

Path Following

This topic is 2342 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
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

This topic is 2342 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this