The raycast is allways looking to the camera.
I have the script attached to my bullet
void FixedUpdate()
{
Ray BulletRay = new Ray(transform.position, Vector3.forward);
Debug.DrawRay(transform.position, Vector3.forward ,Color.red);
}
Doesn't matter if I use ("Vector3.forward" , "Vector3.left"...) the output vector is allways dependent on the camara position/rotation.
I just want a Ray that points in the direction forward the bullet and not the camera.
Thanks in advance
Comment
Your answer
Follow this Question
Related Questions
Raycast doesn't stay in one place 0 Answers
Physics.Raycast Not Working... Kinda 0 Answers
2D raycast not working 0 Answers
How to reflect raycast rays of objects 2 Answers