File:Starmade Rails - 15 - Detecting Collisions

Description
In this episode we look at how we can detect when our basic rail collides with another entity and can't go any further. We look at how we can use that to trigger a stop on the rail so it doesn't keep bouncing. This will come in very handy with building responsive docks that pull ships in to ensure they don't get lodged or keep colliding potentially causing lag and the like.

This tutorial is part of a series on Starmade Rails, you can find all the tutorials in the series here:

https://www.youtube.com/playlist?list=PL76wZEm2fRBsB-UDoQZDtt_nVxSBCuun5