Quantcast
Channel: Questions in topic: "keyboard"
Viewing all articles
Browse latest Browse all 605

Get smooth input when Time.timescale == 0

$
0
0
I've run into issue that I cannot **gradually** pan the camera when the game is paused with Keyboard Input. For some reason, Joystick Input returns float values from "GetAxis" even when Timescale is set to 0, but using WASD wont change. Changing to AxisRaw will work, but there is no smoothing anymore to both Joystick and Keyboard. How can this be solved without using Raw Input? . Vector3 movementXZ = new Vector3 ( Input.GetAxis ("Horizontal") * Time.unscaledDeltaTime, Input.GetAxis ("Vertical") * Time.unscaledDeltaTime, 0);

Viewing all articles
Browse latest Browse all 605

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>