Restitution

How does codea calculate restitution in its physics engine? I’m curious for a different language that doesn’t have built in physics.

Search google for box2d, that’s what Codea uses