CollisionConstraint
An interface representing a constraint that resolves collisions between two bodies in a simulation.
Implementations of this interface must define the logic for resolving collisions between the specified body and other based on their physical properties, positions, and velocities. This process ensures that the bodies interact realistically while respecting the constraints defined for the simulation.
The solve method is called with a time step dt to calculate and apply necessary adjustments to the bodies involved in the collision.