Hi,
I want to control my animation via mouse movement/drag. So if my mouse was towards the bottom of the screen it would be at 0, if my mouse was in the middle of the screen it would be at 0.5, and if my mouse was on the top of the screen it would be at 1.
Here is some code so far:
vertAxisMouse = Input.GetAxis("Mouse Y");
vertAxisMouse *= Time.deltaTime;
vertAxisNormalizedMouse = Mathf.Clamp(vertAxisMouse, 0.000, 1.000);
playerOneAnim["toss"].normalizedTime = vertAxisNormalizedMouse;
Debug.Log("Axis: " + vertAxisMouse + "Normalized: " + vertAxisNormalizedMouse);
playerOneAnim["toss"].time = vertAxisMouse;
Nothing happens though. Comments Welcome ![]()