generateVelocityVector