Jump to content

  • Log In with Google      Sign In   
  • Create Account

Best Way To Calculate Reflection


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Jethro_T   Members   -  Reputation: 168

Like
0Likes
Like

Posted 29 July 2014 - 03:03 AM

Edit: No way to delete this thread?


Edited by Jethro_T, 29 July 2014 - 03:06 AM.


Sponsor:

#2 Álvaro   Crossbones+   -  Reputation: 13311

Like
1Likes
Like

Posted 29 July 2014 - 03:17 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS