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]
[import]uid: 52491 topic_id: 20465 reply_id: 80219[/import]