Newton laws in Visual C++ 2008 using Dark GDK
Loading...
5,133
Loading...
Uploader Comments (poweredBYGDK)
Video Responses
This video is a response to [GDK]Gravity Simulation II
see all
All Comments (25)
-
good work
-
u got mistakes..... in ur program...
-
@poweredBYGD Einstein's field equations are more accurate but in a simple program like this it wont make any different, NASA still use newton and Einsteins laws
-
BLAM haaietanden!
-
I meant that verifying if the total energy remains constant is a good way of checking if your algorithm is stable for these kind of problems in general. And maybe I misunderstood you but how can you say that your algorithm proves the law, it just implements a differential equation. You can on the other hand do an experiment and 'prove' the law by saying that it is a good description of gravity. Nevertheless great job and happy xmas.
Loading...
Physics says something about nature, it does not proove anything. We are only human.
What algorithm do you use to solve the differential equation? If you haven't, you should calculate the potential and kinetic energy and check if the total energy of the system remains constant. I'm going to write a similar program using Einstein's field equations, which give a more accurate description of gravity.
haaientanden 2 years ago
i've only calculated the atraction force between those 2 objects. I may not be a physicist but i know how to implement a simple physic law into a program. as long as you saw the system remaining stable why on earth are you asking if the total energy is constant, it's not obvious ?
poweredBYGDK 2 years ago
and btw, i didn't say that physics prooves anything, my application prooves that newton laws are valid, i didn't planed the movement of those 2 objects, i've only applied the law on them.. and the algorithm generates their new position
poweredBYGDK 2 years ago
I really would like to know how do u create splines (those white lines). for example i have 2 spheres and i want to connect them by a line, and maybe the line can curve and avoid objects lying between the 2 spheres, how can u do that in dark gdk, or at least draw a straight line to begin with? is it possible to see the source code of ur program to learn? Thank you for ur time
AlienArcade 3 years ago
these lines are drawn directly on to the screen , and not rendered from 3d space, if you want to do that there is a simple command dbLine(x1,y1,x2,y2), if you want a line in 3d space you can make a triangle with collinear coordinates
poweredBYGDK 3 years ago
How Long have you been programing in C++ for?
unlimitedhacker012 3 years ago
8 years
poweredBYGDK 3 years ago