fix spawn algorithm to ensure no dynamic element overlap completely.
This is necessary because ode algorithm will loop forever if two dynamic elements overlap in this way.
Showing
This is necessary because ode algorithm will loop forever if two dynamic elements overlap in this way.