{{javascript}}CollisionAvoidance
Take the current movement and shorten it, if a collision would occur.