- Home /
How to calculate the angle of a trajectory to the target but without gravity and heigh and time
It is even possible? Im trying to make car turns smoothly between paths so I need to dynamic calculate angle of trajectory for wheels. Maybe somebody could explain to me how can I do this? Please
You will need to define a few things here:
What is a path?
What do you mean by angle of trajectory on a wheel?
Generally the whole path consists of hundreds of points but it is enough to calculate the parabola between the current position of the vehicle and the next point. I mean that I don't want to wheel rotate to next point immediately, I want to calculate what wheels need to have angle to make car move to next point with a parabolic movement
Answer by Koyemsi · May 05, 2018 at 01:18 PM
Not sure what the paths you mention stand for. But if you want to rotate your car smoothly towards a given point in space, I think you should make use of Quaternions. Take a look at the Quaternion methods, such as : Slerp, RotateTowards, and so on. Maybe this example could help : https://answers.unity.com/questions/1170312/homing-missile-rotation.html
Your answer
Follow this Question
Related Questions
turn 180 spaceship 0 Answers
Turn 180 animation 0 Answers
gentle turning of the car 0 Answers
Math Genius NEEDED! Algorithm problem with parabola 1 Answer
How to make car AI using WheelColliders turn exactly 90 degrees? 0 Answers