This is my code:
RaycastHit tmoHit;
Physics.Raycast(transform.position, transform.forward + new Vector3(0.3f, 0, 0), out tmoHit, 15);
Debug.DrawLine(transform.position, tmoHit.point,Color.blue);
Physics.Raycast(transform.position, transform.forward + new Vector3(0.6f, 0, 0), out tmoHit, 15);
Debug.DrawLine(transform.position, tmoHit.point, Color.blue);
Physics.Raycast(transform.position, transform.forward , out tmoHit, 15);
Debug.DrawLine(transform.position, tmoHit.point, Color.blue);
What I expected it to do was to make 3 lines that will come out of my player with the same distance between them.
but what actually happens is that the distance/offset between them changes, and sometimes they are going to the same direction, but as ou can see in my code, I set a diffrent direcration for each one of them, how can I fix it?
here is a video showing the problem:
[
