How can I drop that ball rolling in the direction of a wooden board For example wood boards are somewhat tilted to the left of how to fit me drop the ball, the ball rolled into
local physics = require "physics" physics.start() local centerX = display.contentCenterX local centerY = display.contentCenterY local tmp = display.newRect( centerX, centerY, 350, 10 ) tmp.rotation = -5 physics.addBody( tmp, "static", { bounce = 0, friction = 1 } ) local tmp2 = display.newCircle( centerX + 100, centerY - 100, 10 ) physics.addBody( tmp2, "dynamic", { bounce = 0.2, friction = 1, radius = 10 } )
local physics = require "physics" physics.start() local centerX = display.contentCenterX local centerY = display.contentCenterY local tmp = display.newRect( centerX, centerY, 350, 10 ) tmp.rotation = -5 physics.addBody( tmp, "static", { bounce = 0, friction = 1 } ) local tmp2 = display.newCircle( centerX + 100, centerY - 100, 10 ) physics.addBody( tmp2, "dynamic", { bounce = 0.2, friction = 1, radius = 10 } )