Hi,
When a physics body falls fro a height, it spins out of control. It is possible for me to make the physics body stay put as such even when falling?
I have the following code…
[lua]local physics = require “physics”
physics.start()
physics.setGravity(0, 100)
function load()
ground = display.newRect(0,100,200,64)
physics.addBody(ground,“static”,{density = 10, friction = 0, bounce=0})
man = display.newRect(0,40,64,64);
physics.addBody(man,{density = 10, friction = 0, bounce=0})
end
local move = function()
man.x = man.x + 10
end
load()
Runtime:addEventListener(“enterFrame”, move)[/lua]
How do i make the smaller square fall without spinning? [import]uid: 64174 topic_id: 12161 reply_id: 312161[/import]
Thanks a lot anyway!!