Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Fuzzball27

macrumors member
Original poster
Aug 8, 2011
30
1
I'm using a low-pass filter to smooth my accelerometer data/object movement on screen. It looks like this:
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)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.