How to stabilize a GameObject


Please let me know if there is a better place to ask this but I have a strange issue. To preface I using the kinect SDK and this item from this asset store item. My goal is to track a persons face and then map a texture onto them. My issue comes from the fact that my object starts to shake and twitch unexpectedly. You can see an example here (I made it in like 10 seconds and used an online editor)

This is due to a few erroneous data points from the kinect. I was wondering if there was a way to stabalize a GameObject or make it so that it does not shiver or eliminate the cause of it all together?
Thank you for any help. Please let me know if any more information is needed!

Hello, i once used that plugin and didnt got that extrange behaviour, anyways create a float threshold var and compare in update if the vector3 given by kinect distance to the last position saved in the previous frame is higher than the threshold, if it is update the position if not ignore it.

Hello, @xxmariofer my only concern with adding a threshold is that what happens if the kinect lags and is not able to correct itself due to its updated position being out of the threshold?