Jump to content
  • Advertisement
Sign in to follow this  
Daggett

Bullet ricocheting

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

Hello all, I'm having a problem trying to figure out how to do proper bullet ricochets. I don't want anything fancy, just something that looks right. Right now I'm just mirroring the bullet ray around the surface normal. However, high velocity bullets don't do this in real life. A real life bullet hitting a metal plate will not bounce off at 45deg if it hits it a 45 deg, instead it will bounce off at a low angle, say < 10deg. But, if you shoot at a metal plate at a high angle it will bounce off at nearly the same angle. I can't figure out how to mathematically merge these two different results. Does anyone know how I could do this? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
If Statment my friend

Share this post


Link to post
Share on other sites
A simple solution is to reduce the velocity component parallel to the surface normal by some factor. Reality is not that simple but this should be close enough.

Rather than using
    V' = V - 2(N dot V)N 
use
    V' = V - (1+f)(N dot V)N 
where f is the "restitution factor", between 0 an 1.

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.

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!