I have a script that uses a raycast with the direction of transform.forward of a camera. The only problem is that transform.forward doesn’t rotate with the camera, it’s global and works like Vector3.forward. Why is that happening?
I was using a script that would find the object and then get its transform.forward, so that is why it didn’t work. I made an another script that I assigned to that gameObject that would get the transform.forward and return it with a variable that I accessed through the first script. Weird.