Hello,
when I read the bounce tutorial, it’s said that bounce is linked to the velocity returned after a collision.
But when a dynamic object (r1 and r2) hit a static object (ground), the final result does not only depend of the bounce of r1 and r2, but also of the bounce of the ground.
local ground=display.newRect( 200, 600, 500, 20) physics.addBody( ground, "static",{bounce=0.5} ) local r1=display.newRect( 100, 100, 50, 50) physics.addBody( r1,"dynamic",{bounce=1} ) local r2=display.newRect( 200, 100, 50, 50) physics.addBody( r2,"dynamic",{bounce=0} )
When the bounce of the ground is 0.5, r1 always jump infinitely r2 stop quickly.
But with ground’s bounce = 1, r1 and r2 always jump, despite r2 have a zero bounce value.
So my question is : how work internally the bounce ? How it’s linked with the velocity restitution ?
Is there a " mix " with the two bounce value object colliding like a mathematical formula ?
Thanks,
Yvan.