Jump to content
  • Advertisement

Driving a car, how to take / make the turn correctly?

Recommended Posts

This is puzzling me for a while, i have a city simulator, where roads are set up as sets of points interconnected with each other. 

Cars try to follow the next point along the road, but when it takes a turn, they tend to miss points completely, because they will never follow a perfect turn, as they have a off-center point of turning. 

I can calculate my center of turning point for vehicles, but i still do not know how to use that to calculate the actual path they should follow, so that the turns take that into account. 

For simplicity, car tyres can only turn fully or not at all, so they cannot choose any turning radius. 


So, how do i calculate when i need to turn when my center of rotation is off-center like for cars? 


Share this post

Link to post
Share on other sites

So, do you suggest that i make the off center turns something set manually by map designers or could i simply calculate this somehow? 


Share this post

Link to post
Share on other sites

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

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!