I’m working on a racing game that uses the mouse for steering. In my vehicle, I have this code running for my turning code:
var turnAmount = Input.GetAxis("Mouse X") * Time.deltaTime * turnSpeed;
if(turnAmount > maxTurn) turnAmount = maxTurn;
if(turnAmount <-maxTurn) turnAmount = -maxTurn;
turning += turnAmount;
transform.rotation.eulerAngles.y = turning;
“turning” is my variable for the total rotation angle and maxTurn limits the total amount you can turn in one step. turnAmount is the clipped total angle change for that step. On OSX, this works perfectly and I can steer no problem. When I build an exe and send it to my artist who is on Windows, it’s unplayable. The turning makes tiny differences and all of the angles seem to be snapped to certain increments. What could be causing this? Here is a screenshot of my input manager:
Does anybody have any idea why this would happen? Thanks!