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
Path Following
This is commonly known as "steering." A quick google for Craig Reynolds should turn up some good introductory resources.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement