After a collision, my circlular object is not rotating like it usually does on my other scripts and I can’t figure out why:
local physics = require("physics") physics.start() physics.setGravity(0, 20) physics.setDrawMode("debug") local player = display.newCircle(display.contentCenterX, 0, 30) physics.addBody( player, "dynamic", {radius = 30, density = 10.0, fritction = 1.5, bounce = 0.4} ) local line = display.newRect(display.contentCenterX + 60, 300, 400, 20) physics.addBody(line, "static", {density = 3.0, fritction = 0.6, bounce = 0.4} ) line.rotation = 10 local line2 = display.newRect(display.contentCenterX + 500, 600, 400, 20) physics.addBody(line2, "static", {density = 3.0, fritction = 0.6, bounce = 0.4} ) line2.rotation = -10
On other threads I saw that this happened when omitting the “friction” value but this is not the case here.
What’s going on?