So, lets say that our system consists of two particles. Without the gravitational force or any other long-range force, the only possible way for these two particles to interact is to collide with each other directly, at least if the initial conditions are such that they lead to the collision.
This problem is easily solved with Newtonian mechanics, but trying to find the Potential of this system (for the sake of simplicity let's say its 2D, and same mass particles) should be something like $$ L=\dfrac{1}{2}m(\dot{x}_1^2+\dot{x}_2^2+\dot{y}_1^2 +\dot{y}_2^2) - V$$ where $$V=V(|\vec{r_1} - \vec{r_2}|,|\vec{u_1} - \vec{u_2}|)$$ and my thought was $$V=\Theta (|\vec{r_1} - \vec{r_2}|)\cdot \delta(|\vec{u_1} - \vec{u_2}|)$$ but still can't get the results needed.
Note, that for same mass particles, the potential just changed velocities on $$\vec{r_1}=\vec{r_2}$$
Any ideas? I can still solve this with Newtonian mechanics, but Lagrangian approximation should work the same somehow
EDIT: Newtonian solution
With any given initial conditions (u1,u2,r1(0),r2(0)):
The x coordinate is given for both particles
$$x_1 = u_1 cos(\theta_1)\cdot t + x_{10}$$ $$x_2 = u_2 cos(\theta_2)\cdot t + x_{20}$$
so solving $x_1=x_2$ gives $$t_{x_1=x_2}=\dfrac{x_{20}-x_{10}}{u_1 cos(\theta_1)-u_2 cos(\theta_2)}$$ and same thing for $y_1=y_2$
$$t_{y_1=y_2}=\dfrac{y_{20}-y_{10}}{u_1 sin(\theta_1)-u_2 sin(\theta_2)}$$
and in both cases $\theta$ is the angle of velocity
Collision happens only if$$t_{y_1=y_2}=t_{x_1=x_2}$$ and in that case there is velocity exchange (same mass)