I got my 3d model for my car ( Black Snow (@BlackSnow02) - Sketchfab ps : he is doing high quality model) but the steering wheel axis are a bit strange because i used an other car is this one it actually worked very well I tryed modifing the rotations with variables in game and i noticed that there were 2 axis with the same rotation
This is the steering wheel that i try to rotate and this is the code :
void SteeringWheel()
{
if (steeringWheelAxis == SteeringWheelAxis.Z)
{
steeringWheel.transform.localRotation = Quaternion.Euler(steeringStartRo, steeringWheel.transform.rotation.y, currentSteeringWheelRotation);
}
else if (steeringWheelAxis == SteeringWheelAxis.Y)
{
steeringWheel.transform.localRotation = Quaternion.Euler(currentSteeringWheelRotation, steeringWheel.transform.rotation.y, steeringWheel.transform.rotation.z);
}
else if (steeringWheelAxis == SteeringWheelAxis.X)
{
steeringWheel.transform.localRotation = Quaternion.Euler(steeringStartRo, currentSteeringWheelRotation, steeringWheel.transform.rotation.z);
}
}
I did many try on differant axis with an enum
Thanks for any replys, if you need more information please informe me

