Used vector maths for creating the velocity