Vehicle turning radius and path projection

Click For Summary
SUMMARY

The discussion focuses on calculating the turning radius and the center of the circular path for a vehicle in a game development context. The formula used is r = wheelbase / sin(steeringAngle) to determine the turning radius. The challenge lies in accurately finding the circle's center, which requires using the vehicle's direction vector and adjusting for the steering angle. Participants suggest using the after-turn direction vector for better accuracy in determining the circle's center, particularly in a 3D coordinate system.

PREREQUISITES
  • Understanding of vehicle dynamics and steering mechanics
  • Familiarity with trigonometric functions, specifically sine
  • Knowledge of 3D coordinate systems and vector mathematics
  • Experience with game development concepts and physics simulation
NEXT STEPS
  • Research "3D vector mathematics for game development"
  • Explore "Physics-based vehicle simulation in Unity or Unreal Engine"
  • Learn about "Implementing steering behaviors in game AI"
  • Investigate "Advanced trigonometry applications in game physics"
USEFUL FOR

Game developers, physics simulation engineers, and anyone involved in vehicle dynamics modeling in interactive environments.

shipiz
Messages
5
Reaction score
0
Hi everyone, i hope this is the right place to post this.

Anyway, I'm creating a game, and I'm trying to calculate and project future car movement path based on steering angle of the wheels. By using equation:

r = wheelbase / sin(steeringAngle)

I'm able to calculate turning radius. But the problem is finding the center of the circle where vehicle will turn.
I can calculate approximate circle center by getting current direction vector and offset by radius. But it still misses by some part. Also note that vehicle is not moving when calculations are executed. Disregard all basic physics laws for this. :)

Thanks in advance
 
Last edited:
Physics news on Phys.org
When you say:
shipiz said:
I can calculate approximate circle center by getting current direction vector and offset by radius.
What do you mean by current direction vector? Is this before or after the change of steering angle?
In general, if you are measuring your steering angle +/- theta degrees from 0, assuming an initial direction of +x, vehicle located at the origin, and the effect of this steering is to induce a circular path with radius r, then you should be able to center your circle at y = +/- r.
The important thing to note is that a line drawn from the center to the car should be perpendicular to the line drawn at theta = 0.
 
I have a direction where vehicle is facing and current vehicle position. Everything is in 3D just to note.
Vehicle is static while wheels are turning between max steering angle (+/- theta) where theta=0 is forward direction.

So here is what i basically do:

find a turning radius as described in formula above
because i know where vehicle is facing, i can get right/left direction vector and multiply it by radius and add to current vehicle position to get center of circle

But the thing is that when i accelerate from stationary position it seems that circle is a bit off in Z position ( Y-up coordinate system).

Here is a picture that illustrates, white is projected circle, and red is real vehicle movement circle
 

Attachments

  • Screen Shot 2016-02-12 at 8.55.51 PM.png
    Screen Shot 2016-02-12 at 8.55.51 PM.png
    103.8 KB · Views: 953
After some consideration, and looking at your picture seems to encourage my thinking, you might want to offset the center of the circle from the after-turn direction vector.
This makes sense if you think that as soon as the wheel is turned, it's direction will be in the right/left theta direction.
What do you think?
 
RUber said:
After some consideration, and looking at your picture seems to encourage my thinking, you might want to offset the center of the circle from the after-turn direction vector.
This makes sense if you think that as soon as the wheel is turned, it's direction will be in the right/left theta direction.
What do you think?

If i understand you correctly, instead of using vehicle right/left direction, i should use wheel after-turn(by theta) left/right direction to calculate center offset ?
 
That's what I am thinking.
 

Similar threads

  • · Replies 49 ·
2
Replies
49
Views
5K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 102 ·
4
Replies
102
Views
7K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
25K
  • · Replies 7 ·
Replies
7
Views
9K
  • · Replies 8 ·
Replies
8
Views
9K