08-30-2024, 10:31 PM
Hi, I'm using a spline for a racing track and I have the player car follow the spline and steering moves the cars offset from the spline.
If the player does not steer when going around a corner I'd like the car to drive straight on instead of following the spline. I figured if I could calculate the corner angle for each point on the spline I could use that to apply oppose offset to simulate the car driving straight.
Is there a way I could calculate the corner angles? Thanks
If the player does not steer when going around a corner I'd like the car to drive straight on instead of following the spline. I figured if I could calculate the corner angle for each point on the spline I could use that to apply oppose offset to simulate the car driving straight.
Is there a way I could calculate the corner angles? Thanks