Stupid rotation problem

Not sure how large you’re letting that list get to, but it will have a “dead” or “laggy” feel to it because you are linearly adding the historical terms up.

At a minimum you should be increasing the importance / weight of the most-recent terms.

This controller:

handles the mouse smoothing at around line 206/207 with a simple Lerp on each axis. The “acc” variables are the accumulating term that the raw inputs are fed into.

Yes, that’s not the “intended” purpose of Lerp, but Lerp has a secondary role as an easy-cheesy low-pass filter, giving high importance to recent inputs and less and less to past accumulated inputs.

Full original post here:

1 Like