| Algorithm 1 Contact Solver base Force |
| Given parameters and |
| while True do |
| Get position of collide object |
| collide(A,B)//Collision detection for object A and B |
| if number of contact > 0 |
| Compute |
| for each contact i do |
| if contact is start |
| then ccd |
| else if contact is end |
| then //modify time of contact |
| end if |
| Compute with integrator |
| Compute |
| end for |
| end if |
| end while |