how can I make accelerometer more realistic

As topic, I would like to make the accelermeter more realistic. I want to move an object with physics engine with Accelerometer event.

I’m using this code copy from one of the sample code.
Is there anything I can add on this to make it better? Please give me some idea.
function onTilt( event )
physics.setGravity( ( 9.8 * event.xGravity ), ( -9.8 * event.yGravity ) )

end

By the way, I’m using landscape mode, look like the accelerometer not correct when using landscape mode. DO I setting wrong in some place?

Thanks in advance.

KC [import]uid: 94613 topic_id: 20465 reply_id: 320465[/import]

you may be interested in the discussion going on in this thread RE gravity, tilt and landscape: http://developer.anscamobile.com/forum/2012/01/14/tilt-based-gravity-not-working

Getting the effect to be realistic is usually a matter of playing with settings until they feel right - although I think the tilt in Tilt Monster is certainly worth looking at; it works wonderfully.

Peach :slight_smile: [import]uid: 52491 topic_id: 20465 reply_id: 80219[/import]

Thanks Peach for the link, I will check it out.

KC [import]uid: 94613 topic_id: 20465 reply_id: 80262[/import]