Hi,
a simple problem - but… I go crazy!!!
[lua]
local physics = require(“physics”)
physics.start()
physics.setGravity(0, 40)
local bottomWall = display.newRect( 0, display.contentWidth/2, display.contentWidth, 10 )
bottomWall.x = display.contentWidth/2
physics.addBody(bottomWall, “static”, {density = 1, friction = 0, bounce = 0})
ball = display.newCircle( 0, 0, 30 )
physics.addBody(ball, “dynamic”, {density = 1, friction = 0, bounce = 0.5, radius = 15})
player.isFixedRotation = false //important for me
ball.isBullet = true
ball:applyForce(200, 50)
[/lua]
I want that the ball will stop after ra few seconds… but he’s moving on and on… Why? I want to simulate ice, stone (…) grounds by different frictions but nothing worked for me.
Help?! Thank you
Anthony