Sign in to follow this  
nowzer

Object Deflection

Recommended Posts

Hey,

 

I've got some code which allows me to fire some projectiles, but i'm struggling to find appropriate code or maths to handle the collision / deflection. Saying that I can find certain code / maths for colliding with other rigid bodies, but I only want to deflect off a static floor.

 

I technically know that the output angle will be the input angle reflected along the surface normal (calculating this isn't a problem), as shown here:

http://en.wikipedia.org/wiki/Deflection_%28physics%29

 

But i'm after understanding how to calculate in CoR (bounce) and spin (Magnus), friction, etc...

 

Either code or good resources welcome ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this