Jump to content
  • Advertisement
Sign in to follow this  
raptorstrike

ploting a curve

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

ok i have a point of impact I i have a speed S how do i use this information to make the object that is impacting reflect in an ark off that object? (whats the math involved here?)

Share this post


Link to post
Share on other sites
Advertisement
Trying as hard as I can to not be snarky...

Assuming you want the absolutely most simple collisions, you also need to know something about the object that is being hit. Generally, you just reverse the speed portion that is perpendicular to the face of the object that is hit.

If a ball going 1,1 hits a surface that is vertical, it will then be going -1,1 [as the x axis is perpendicular to the vertical surface]

And know that makes -MANY- assumptions and will pretty much only apply for pong or breakout style games.

Share this post


Link to post
Share on other sites
yeah i know that and that work great but now im going for acctually curving the ball path (you know like when you put spin on a ping pong ball).
[EDIT]
this is a 2d project

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!