is there a way to give my spawning object density so it could fall faster than the my other objects, this is what i have below but it doesn’t work.
[lua]physics.addBody(bomb , “dynamic”, {isSensor = true, radius = 15, density=9.0}) [import]uid: 132369 topic_id: 25670 reply_id: 325670[/import]
See: http://developer.anscamobile.com/reference/index/bodylineardamping
[lua]require ( “physics” )
physics.start()
physics.setGravity( 0, 9 )
local ball1 = display.newCircle( 100, 50, 25 )
local ball2 = display.newCircle( 220, 50, 25 )
physics.addBody(ball1)
physics.addBody(ball2)
ball2.linearDamping = 1[/lua]
That should do what you want. [import]uid: 52491 topic_id: 25670 reply_id: 103826[/import]