Thread: Help with Ball Movement please!!

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    4

    Help with Ball Movement please!!

    well, the thing is i made this very very (very) simple Pong game using graphics and i just wanted to know how can i make the ball move not in "fixed" directions, i mean i want it to move according to the angle of the hit with the paddle (i know this has something to do with trigonometrical functions like cos, tan) can anyone please help me out?!?

    thx

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    http://cboard.cprogramming.com/searc...der=descending

    Ah...the power of a board search.

    Mod: Could we get a ball movement thread moved the the FAQ?
    Away.

  3. #3
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    There are several of them, but one of them talks about reflecting in correct angles, which is pretti good.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to create a bouncing ball?
    By Swerve in forum C++ Programming
    Replies: 7
    Last Post: 09-12-2008, 03:41 AM
  2. Pls repair my basketball program
    By death_messiah12 in forum C++ Programming
    Replies: 10
    Last Post: 12-11-2006, 05:15 AM
  3. Display Lists (OpenGL)
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 06-05-2005, 12:11 PM
  4. Mind-Reading chip for the disabled
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 04-04-2005, 12:44 PM
  5. The Old Bouncing Ball
    By bartybasher in forum Game Programming
    Replies: 3
    Last Post: 08-19-2003, 03:06 AM