Ok I’m having a problem with physics. Ok the problem is everytime I have a ball roll towards a wall instead of it bouncing off it sticks and does not bounce. Here is the code for how I have my ball and wall physics set up
[code]local physics = require(“physics”)
require “ui”
physics.start()
local platform2 = display.newRect(400, 210, 10, 40)
platform2.name = “platform1”
physics.addBody(platform2, “static”,{bounce = 3, friction = 1})
localGroup:insert(platform2)
local ball = display.newImageRect(“smile.png”, 50,50)
ball.x = 100
ball.y = 200
physics.addBody(ball,{bounce = 0, friction = 1, density = 1 ,radius = 21})
ball.name = “ball”
ball.angularVelocity = 200
localGroup:insert(ball)
camera:addObject( ball )
camera:setFocus( ball )[/code]
What could be the problem? [import]uid: 17058 topic_id: 22283 reply_id: 322283[/import]