That was a PEBCAK. I passed the wrong coordinates to updateDirection. Everything works with Vector Blade now.