Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Q] Bouncing a Ball & Dot Products  (Read 1503 times)

0 Members and 1 Guest are viewing this topic.

UchihaKite

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
[Q] Bouncing a Ball & Dot Products
« on: July 14, 2016, 07:38:52 pm »
Good Afternoon SFML Community!

First off, thank you all for your welcoming nature and helping me to not only understand SFML better, but to also expand my C++ knowledge.

However, I've run into a huge issue. Over Summer break, my teacher gave me some things that I could study to have a general understanding for our next class. Sadly, this has to do with Math, in High School I didn't think I would go to College, so I only took basic Algebra (11 years ago lol).

I was hoping that someone could kind of, point me in the right direction, in reference to this stuff? This is what he wanted me to look into:

Reflecting a Projectile Off a Wall at an Odd Angle (Dot Products)

Detect Whether Something is in your Field of View (Dot Products)

Fire a Projectile at any Angle (Like Geometry Wars, Sin/Cos/Tan)

Rotate a Point by some Angle, Around Another Point (Rotation Formula, Sin/Cos)

I apologize if I posted this in the wrong area, and I also apologize if this was wrong of me to ask in general. I really want to learn how to do this stuff, and I couldn't really find any examples online. Thank you for taking the time to read this, and any help in figuring out how to do this, and maybe being pointed to a good resource for C++ Math Stuff, would be greatly treasured. Again, I am sorry for having to ask for this type of help.

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: [Q] Bouncing a Ball & Dot Products
« Reply #1 on: July 14, 2016, 08:00:10 pm »
this should keep you busy forever

Math for Game Developers
https://www.youtube.com/playlist?list=PLW3Zl3wyJwWOpdhYedlD-yCB7WQoHf-My

Coding Math - Episodes - Javascript
https://www.youtube.com/playlist?list=PL7wAPgl1JVvUEb0dIygHzO4698tmcwLk9

Coding Math - Minis - Javascript
https://www.youtube.com/playlist?list=PL7wAPgl1JVvVfjZa9kqNSICP4-r_HsXpJ

Coding Math - Application - Ballistics - Javascript
https://www.youtube.com/playlist?list=PL7wAPgl1JVvWkDTlqUQtgFLd_QX2bEY5H

C++ Linear Algebra
https://www.youtube.com/playlist?list=PL4288D6E84B4D414D

Khan Academy - Math
https://www.khanacademy.org/math/

Patrick JMT (Just Math Tutorials)
http://patrickjmt.com/

I like the javascript videos best
they're really easy to understand
and you can whip them up and try them out fast

UchihaKite

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: [Q] Bouncing a Ball & Dot Products
« Reply #2 on: July 17, 2016, 03:50:44 pm »
Hmmmm I don't think I have ever looked at Java examples and adapted it to C++, but that should be an interesting process!

Thank you so much for taking the time to provide this stuff to mean! It really means a lot man :D

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: [Q] Bouncing a Ball & Dot Products
« Reply #3 on: July 17, 2016, 09:32:29 pm »
those are javascript
not java
completely different --- much easier to work with and understand for me

 

anything