I want to make my ball and rectangle solid so when the ball is rolling down, it won’t pass right through the rectangle . I tried .isBullet but that didn’t work . I tried increasing and decreasing my addBody attributes but that still didn’t work . Any help please .
Ball = display.newCircle(100, 100, 10) physics.addBody(Ball, 'dynamic', {density = 2, friction = 0.5, bounce = 0.5, radius = Ball.width / 2}) Ball.isBullet = true -- More accurate collision detection Ball:applyLinearImpulse(-.05, .05, 0, 0) screenGroup:insert(Ball) rectangle = display.newRect( 0, 0, 150, 50 ) rectangle.strokeWidth = 1 rectangle:setFillColor( 2.5 ) rectangle.isBullet = true rectangle:scale(0.5, 0.5) rectangle:setStrokeColor( 0, 3, 0 ) physics.addBody(rectangle, "static", {density=0.1, friction=0.1, radius=10.5}) screenGroup:insert(rectangle)