Using vector
will return direction if no camera

was returning null
Using Vector3 replacing float[]
Note that sprite batch must called begin first