http://3dtoday.ru/blogs/kick-2/sensor-the-stopend-of-the-filament-from-the-mouse/