Hello
Im attempting to get some ease-in/out to work with my simple rotation script, gradually increasing and decreasing the rotation speed instead of instantly getting to the rotation speed value.
i know GetAxis uses the sensitivity settings within unity, id like to get a similar result through the script itself to have some more control, and also allowing the rotation to ease out after releasing the button.
here is the relevant script
using UnityEngine;
using System.Collections;
public class RotationEaseTest : MonoBehaviour {
private float stationaryRotationSpeed = 10.0f;
// Update is called once per frame
void Update () {
float rotation = Input.GetAxis ("Horizontal") * stationaryRotationSpeed;
rotation *= Time.deltaTime;
transform.Rotate (0, rotation, 0);
}
}