For my racing game I want to make the steering wheel turn as the vehicle turns. Problem is, The steering wheel is tilted 48 degrees on the z axis.
I need to preserve this tilt while rotating the steering wheel left and right.
Heres my code so far:
public GameObject SteeringWheel; private Quaternion Tilt; Tilt = Quaternion.Euler(0, 0, 48); SteeringWheel.transform.localRotation = Quaternion.Euler(0, Input.GetAxis("Horizontal") * 180, 0)
it seems that is just ignoring the 48 degree tilt. I feel like I’m making a simple mistake somewhere, so I apologize if this is a stupid question.