Orthogonal projection on a curve (Phaser 3)