Nathan Laing
Member
Greetings all,
I have a vehicle which turns according to the code below. It works correctly.
However, I am also animating/adjusting the tyre angles and I need a way to "link" the tyre angle to the vehicle turn code. How might this be done?
I have a vehicle which turns according to the code below. It works correctly.
However, I am also animating/adjusting the tyre angles and I need a way to "link" the tyre angle to the vehicle turn code. How might this be done?
Code:
image_angle += max(0.5, turn_speed * (1 - (current_speed / max_speed) * turn_speed_factor))
// where turn_speed_factor further affects the amount of turn at slower or higher speeds