If i’ve intially declared a body set of properties such as:
local body1 = { density=1.2, friction=0.2, bounce=0.2, radius=28 }
and have used this for a physics object such as:
local ball = display.newImage( “ballImage.png” )
physics.addBody( ball, “static”, body1 )
then how do I later when the physics is running change the density of
my ‘ball’?
would it be something like:
body1.density = 2
I basically want to make it ‘heavier’ when it reaches a certain region.
thanks!!
[import]uid: 13568 topic_id: 8943 reply_id: 308943[/import]