i am trying to understand how to implement the physics of sprite when it hit a wall. lets say i have a wall, and a sprite is is hitting the wall with velocity and gravity using box2d(cocos2d), what is the simplest way to apply a physics of what happen next to the hit, regrading the velocity,gravity,angle of collision, etc ? contact listener ? do i have to calculate what happen next by my self and apply a new speed and force to the body ?? or box2d does it for me ?
any direction would be great. thanx.