Is there a way to dampen or smooth the results you get from accelerometer? I am writing a test that checks the values during onFrame with
local function onTilt( event )
ball.x = screenX \* event.xGravity + centerX
ball.y = screenY \* -1 \* event.yGravity + centerY
-- physics.setGravity( 50 \* event.xGravity, -50 \* event.yGravity )
frameUpdate = false
end
It generally does what I want, but I would like it to be a lot less “jiggly”?
Thanks, I’m new [import]uid: 1606 topic_id: 9019 reply_id: 309019[/import]