Robin Rodricks
Robin Rodricks

Reputation: 113946

Ray-plane intersection to find the Z of the intersecting point

I have a rectangle in 3d space (p1, p2, p3, p4) and when the mouse rolls over it I need to calculate the exact Z of the point on the rect, given the mouse coordinates (x, y).

Would a Ray-plane intersection find the Z of the intersecting point?

Thanks

Upvotes: 1

Views: 2271

Answers (1)

tibur
tibur

Reputation: 11626

You might try a ray / plane intersection. Check: Object/Object intersection.

Upvotes: 3

Related Questions