Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Does anyone average the values of analog controls that provide multiple action values per frame?

$
0
0
When I noticed that my gamepad sticks were calling my action callbacks multiple times between frames with different values, I thought about how I should handle it. I know that taking only the latest value would be fine in many cases, and that is also what would happen if you polled the action during Update() instead of using callbacks. But I also experimented with averaging all of the different values that came in between frames. I figure that that precision is the whole benefit of analog...

Does anyone average the values of analog controls that provide multiple action values per frame?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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