Part 5 Reflection Vector

Your browser needs java to view projects. Click here to install Java.

user_icon Canthiar shared it 2 years, 1 month ago
390 views, 1 tagger, 1 person loves it, 36 downloads, in 3 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
Bluefizz Bluefizz 1 year, 2 months ago

I dont get this...

EdnaC EdnaC 1 year, 8 months ago

Thanks much, now it makes sense, and I don't like using code I don't understand. Vector math seems like magic sometimes! Method used in: (link to project)">(link to project)

Canthiar Canthiar 1 year, 8 months ago

(vector dot normal) is the length of the component of the vector that points in the same direction as the normal, if vector was pointing away from the intersection point. (vector dot normal) * normal calculates a point with that length above the intersection point, which is half way way between the incoming vector and the reflection vector. If you use vector subtraction then you get a vector from the end of the incoming vector to the center point. That would be half of the yellow line. Multiply by two and add back to the incoming vector. The reduction can be seen here: (link to forum)">(link to forum)

EdnaC EdnaC 1 year, 8 months ago

Nice tutorials! I pulled out my Calculus book to review Vectors (at one time, I had a good grasp!). I haven't been able to visualize WHY the reflection vector is 2*VdotNormal*NormalVector-Original. Do you have time for a demo of WHY?

Canthiar Canthiar 2 years, 1 month ago

Illustration for discussion in the forums (link to forum)">(link to forum)

Please Wait...