I have a problem in the game I am working on where regardless of the friction or density I apply to an object, it continues to roll/slide along the ground. Here is the sample code I have put together as an example:
local physics = require( "physics" )
physics.setDrawMode( "hybrid" )
physics.start()
local ball = display.newCircle( 50 , 50 , 50 )
physics.addBody( ball, { bounce = 0.3 , friction = 1 , radius = 50 })
ball:applyForce( 10 , 0 , ball.x , ball.y )
local ground = display.newRect( 0 , 0 , display.contentWidth , 10 )
ground.y = 100
physics.addBody( ground , "static" , { bounce = 0.3 , friction = 3 })
Am I missing something? I’ve tried working with density as well, and all that seems to do is slow the overall physics down, but it does not actually stop the ball from rolling either. [import]uid: 84598 topic_id: 14168 reply_id: 314168[/import]
[import]uid: 49300 topic_id: 14168 reply_id: 56906[/import]