Collisions is explained extensive in the gamestudio manual I think (you can find the manual in the same folder as SED.exe, WED.exe etc.).