Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

dan parker

3d reflection

This topic is 5619 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, thisis should be real easy to do, but for some reason I cant ge t it to work and its driving me mad! i want to work out the angle of reflection of a ball hitting a flat surface, not taking into account gravity etc.. i have so far tried this, but it doesnt work :0( newDir = oldDir - (planeNorm * (oldDir.dot(planeNorm))*2); anyone offer any help?

Share this post


Link to post
Share on other sites
Advertisement
Actually, that looks pretty good.


Is planenormal a unit vector?

[edited by - gumby on March 4, 2003 1:55:16 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!