Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm doing line plane intersection, and have come across an un-referenced variable or constant in the tutorial I'm following.

One of the formulae given is this:

t = N dot (p2 – p0)
     N dot V

The variable I'm stuck with is V. Can someone tell me what V is and how I'd go about finding it?

For more info on that formula, please see the link given in the first para.

Thanks,

James

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Looks like V = p1 - p0. Since then t = 0 when p2 = p0, and t = 1 when p2 = p1.

share|improve this answer
1  
Thanks so much :-) just the answer I needed. I'd vote you up but I have 1 rep :-P –  Bojangles Nov 14 '10 at 17:01
    
No worries! :) Glad it helped... –  Stuart Golodetz Nov 14 '10 at 20:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.