Here’s how I rotate the turret in my tank game:
// Turret rotation
if (serverMouseX handler.turretMobile){
turRotSpeed += serverMouseX;
}
turRotSpeed -= turRotSpeed * turDrag;
tur.Rotate(Vector3.up, turRotSpeed * turretSpeedFactor * Time.deltaTime);
turRotSpeed is modified by Input.GetAxis(“Mouse X”) and by reducing a constant drag value from it each physics step in FixedUpdate and turretSpeedFactor is a predefined variable that remains constant.
Shouldn’t multiplying by deltaTime negate the effects of varying frame rates on the rotation speed of the turret? However if I look at a forest with lots of trees the turret turns faster than when I look a plains with low amounts of detail. Is there something else I should do? The turret also turns slower in standalone than in the web player or editor. How could I make them turn at the same speed in both?