Hello everyone,
I'm trying to project my Vector2 input onto a plane based on the rotation of my camera. But I don't know what I'm doing wrong.
I've made some drawings based on my situation
Essentially the plane (yellow) is at an angle towards the camera (blue).
I'm trying to figure out which direction on the plane corresponds to the up direction in my cameras view (green).
I want to basically use that direction in order to move an object along the plane based on my y-axis input.
But by using Vector3.ProjectOnPlane (targetCamera.transform.up, CursorPlane.normal ).normalized; I'm getting the wrong direction (red).
I feel like I'm going insane... any idea what I missed or did wrong?