I'm using a low-pass filter to smooth my accelerometer data/object movement on screen. It looks like this:
I'm looking for a good combination of factors that will provide smooth and fast movement for the object(s) on screen. Any suggestions?
(the accelerometer refresh rate is 1/10)
Code:
accelX = (accelX * someFactor) + (accelerometer.x * someOtherFactor);
I'm looking for a good combination of factors that will provide smooth and fast movement for the object(s) on screen. Any suggestions?
(the accelerometer refresh rate is 1/10)