Setting diff mass for crate with same size

API explanation
density is multiplied by the area of the body’s shape to determine its mass. This parameter is based on a standard value of 1.0 for water, so materials that are lighter than water (such as wood) have a density below 1.0, and heavier materials (such as stone) have a density greater than 1.0. However, feel free to set density values to whatever feels right for your game, since overall object behavior will also depend on your gravity and pixels-to-meter scale settings (see previous section). The default value is 1.0.
i have tried different way to set mass for crate with same size
here my code
physics.setGravity(0, 9.8)
physics.addBody(crateObj, “dynamic”, {density=3000.0, friction=0.5, bounce=0.3 } )
physics.addBody(groundObj, “static”, { friction=0.5, bounce=0.3 } )

i found it no diff with
physics.setGravity(0, 9.8)
physics.addBody(crateObj, “dynamic”, {density=3.0, friction=0.5, bounce=0.3 } )
physics.addBody(groundObj, “static”, { friction=0.5, bounce=0.3 } )

what should be the correct code to make the drop speed diff? (diff mass i mean)

Thanks! [import]uid: 10373 topic_id: 3626 reply_id: 303626[/import]

no feedback from corona ge developer? [import]uid: 10373 topic_id: 3626 reply_id: 11331[/import]

If I remember my school physics, feathers and cannon balls would fall at the same speed were it not for air resistance?
[import]uid: 6645 topic_id: 3626 reply_id: 11340[/import]

hmm… you are right

but we are in earth :slight_smile:
definitely, if we drop a feathers and a stone from level 100 at the same time, the stone will reach floor first

same shape but different falling is one of my game play
so, i hope master corona can provide some guide on this

P.S. plz correct me if i am wrong :slight_smile:
[import]uid: 10373 topic_id: 3626 reply_id: 11349[/import]

add linear damping or set its initial velocity lower [import]uid: 6645 topic_id: 3626 reply_id: 11360[/import]