• Advertisement
Sign in to follow this  

Best Way To Calculate Reflection

This topic is 1273 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Edit: No way to delete this thread?

Edited by Jethro_T

Share this post


Link to post
Share on other sites
Advertisement
Why would you want to delete it? And why not leave the original question? Even if you found the answer on your own, this thread could be useful to other people that might find it in the future...


I have an arbitrary surface normal and the normalized velocity of an object hitting the surface. Is there a way I can calculate the proper reflection vector without using trig operations?


It can be done using the dot product, like this:

reflected_vector = incident_vector - 2 * dot_product(incident_vector, normal) * normal

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement