i’m new to corona and game development i am making simple game with physics to move objects with touch here is my code
[blockcode]
local physics = require"physics";
local gameUI = require(“gameUI”)
physics.setDrawMode( “normal” )
physics.setScale( 40)
physics.setPositionIterations( 60 )
physics.start();
local _H=display.contentHeight;
local _W=display.contentWidth;
local crat1=display.newImageRect(“crate1.png”,40,40)
crat1.x=20;crat1.y=200;
physics.addBody(crat1,“dynamic”,{density=-1000,bounce=0.1,friction=100});
local function dragBody_call(event)
–Calling drawBody() From gameUI
gameUI.dragBody(event);
end
crat1:addEventListener( “touch”, dragBody_call) – make object draggable
[/blockcode]
in simulator movement and touch events are working perfectly and when i deploy it on android device physics works perfectly and i can also move objects with Touch but its very leggy and hard very hard to move a objects It’s not as smooth as simulator how can i fix this plz help… [import]uid: 161937 topic_id: 28382 reply_id: 328382[/import]