Raycasting mouse coordinates to rotated object?
- by SPL
I am trying to cast a ray from my mouse to a plane at a specified position with a known width and length and height.
I know that you can use the NDC (Normalized Device Coordinates) to cast ray but I don't know how can I detect if the ray actually hit the plane and when it did. The plane is translated -100 on the Y and rotated 60 on the X then translated again -100.
Can anyone please give me a good tutorial on this? For a complete noob! I am almost new to matrix and vector transformations.