cancel
Showing results for 
Search instead for 
Did you mean: 

pointer smoothing

gevasaf
Explorer
In one of our apps, we implemented a pointer interaction.

I tried to align it as closely as possible with the pointer that comes out of your hand in the dash menu, and I noticed that some sort of smoothing or predictive movement is applied to the pointer's movement (the application pointer was much more shaky when the 2 pointers were displayed on top of each other).

Any idea on how to implement such smoothing?
From some platelets we did, it would really help players to confidently select stuff with the pointer.

TX
2 REPLIES 2

LogicaExp
Explorer
I belive thats called "Interpolation", its easy to implement in UE4. Not sure about Unity

gevasaf
Explorer
yeah there's a way to do linear interpolation in unity too..

I guess the question is what are the best parameters to do so...
Mathematically, I thought about using a moving average over the last X time.
But it seems kind of floating if X is too big and shaky if X is too small...
Maybe the solution is to use the 1st/2nd derivative?...