I took a photo of the code as it would be easier to read with all the comments.
What I am trying to do, is pretty much the raycast, with a Vector3 Raycast I couldn’t figure out
how to use a RaycastHIT for a Vector3 (gives an error).
So pretty much what I am trying to do is with that raycast inside #region Missile AI
to override the #region Trajectory to change the missiles course if there’s an object within 30 meters of it.
The comments explain a lot with what I am trying to do.