just need some clearing on this.

2 questions here:

1. ok so if i want to make a game using opengl i have to
program everything in C++ (like what my character does or gravity, ect.)
and all my graphical stuff is done with opengl right?

and

2. how would i tell opengl to move lets say my player based on what my characters
inputs are >.>?
is there a tutorial for this or something?

thanks in advance to all that help meh!
bump >.< (i did wait over 24 hours to do so)
Last edited on
IF (and only if) you know something about physics you should know this:
X=X0+0.5at2
This clearly says: CURRENT position of X (can be Y too!!) is 0.5 times of acceleration and "time step" squared (typo?).

You just to have make something called a "time step" so your program runs in any machine (not only in yours)

about Q2:
Have you read OpenGL manuals?


Rest: if you don't have any idea how this is made you should first try.... well... fstream. You specify a starting velocity of a object and angle... Always give some end condition (never give your object going over-ranged (for example too far; y-scale > 0 == OK)) -> save each iterations in format of:
-X pos
-Y pos
REMEMBER! Have decent (=good/bad) time step!
Use the data in graphs (OOCalc (or in MS excel))
After a while you will understand how you would build your program (in C++ of course)

:)
Topic archived. No new replies allowed.