Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 1 more developer from Canada and 12 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 23 Aug 2013
Offline Last Active Aug 29 2013 05:20 AM

Topics I've Started

Object Deflection

23 August 2013 - 08:52 AM



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:



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


Either code or good resources welcome ;)