Forum Discussion
gevasaf
6 years agoExplorer
pointer smoothing
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
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
- LogicaExpExplorerI belive thats called "Interpolation", its easy to implement in UE4. Not sure about Unity
- gevasafExploreryeah 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?...
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 years ago
- 4 months ago
- 4 months ago