1 decade ago by sleenee
Hey,
Does anyone know how to make an entity bounce in box2D? It's a standard property of normal ImpactJS but in box2d this in called restitution. Or that is what is written here:
http://www.box2dflash.org/docs/2.0.2/manual#Friction_and_Restitution
But I can't seem to get it to work. Also if you look at the dom, it does not seem to be there. (box2D body properties have a m_ prefix)
does anyone know how to set it directly as a property? Or is this usually simulated with the impulse function?
thanks in advance,
Sleenee
Does anyone know how to make an entity bounce in box2D? It's a standard property of normal ImpactJS but in box2d this in called restitution. Or that is what is written here:
http://www.box2dflash.org/docs/2.0.2/manual#Friction_and_Restitution
But I can't seem to get it to work. Also if you look at the dom, it does not seem to be there. (box2D body properties have a m_ prefix)
does anyone know how to set it directly as a property? Or is this usually simulated with the impulse function?
thanks in advance,
Sleenee