Jump to content
  • Advertisement
Sign in to follow this  

reflection angle

This topic is 4754 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

hi all, am back again with a minor math question. given a orientation, how do find the reflection orientation for the same. assume, i hit a wall with a particular heading value and once an intersection is found, i would like to rotate the object along its reflection vector. hence, how do i compute the orientation of such a vector ?. .kavitha

Share this post


Link to post
Share on other sites
Advertisement
I believe the reflection vector is the same as the angle of incidence(assuming no friction / other forces acting on it). I'm pretty sure the surface's normal must be used in the calculation. V' = (N dot V) * V ...or maybe V' = -(N dot V) * V.. its been a while. Can anyone back me up on this?

[EDIT]

Vf = Vi - 2(N')

N' is Projection of Vi onto N

N' = N(N dot Vi)

[/EDIT]

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!