Calculating collision response using collision callbacks
Posted: Tue Sep 09, 2014 2:11 pm
Hi, I would like to know the correct technique for calculating the collision response applied to bodies, with reference to the collision callbacks.
For example, suppose there is a dynamic body with a circular fixture, trapped inside a rectangular loop shape fixture of a static body. If I set the fixtures of both bodies to have a restitution of zero, the circular shape will not bounce when an impulse is applied to it, and it hits the edge of the other fixture. How do I use the callbacks to make the circular body bounce around like its fixture has a restitution of 1, and it is perfectly elastic. Thanks for your help.
For example, suppose there is a dynamic body with a circular fixture, trapped inside a rectangular loop shape fixture of a static body. If I set the fixtures of both bodies to have a restitution of zero, the circular shape will not bounce when an impulse is applied to it, and it hits the edge of the other fixture. How do I use the callbacks to make the circular body bounce around like its fixture has a restitution of 1, and it is perfectly elastic. Thanks for your help.