Jump to content

View more

View more

Image of the Day

Working on an auto spawn system. #gamedev #indiedev #screenshotsaturday https://t.co/Mm2kfekz7b
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Object Deflection

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 nowzer   Members   

104
Like
0Likes
Like

Posted 23 August 2013 - 08:52 AM

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 ;)






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.