Raycasting mouse coordinates to rotated object?

Posted by SPL on Game Development See other posts from Game Development or by SPL
Published on 2012-11-30T11:20:36Z Indexed on 2012/11/30 11:23 UTC
Read the original article Hit count: 331

Filed under:
|

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.

© Game Development or respective owner

Related posts about opengl

Related posts about raycasting