How would i go about creating a realistic physics program?
Printable View
How would i go about creating a realistic physics program?
you have to be WAY more specific. what are you planning on doing? there is a "landers" game demo and i think it has something to do with physics. go check it out, its somewhere around here
Either change your name to God or be prepared to spend the rest of your life programming to get maybe about 30% realistic physics.
Seriously though, if you mean to create a complete set physics like in our reality/plane of existence/universe/whatever it is almost impossible, there is just too much to it. Even physicists today don't know even close to everything there is to know, and even what they do know is mostly hypothetical. In the world of computers the physics models that are used the most are usually the following:
- gravity (that's a very broad generalization BTW)
- speed / acceleration
- mass / inertia
- distance / displacement
- sound waves
- wave motions in general
- collisions
- light rays / colour
- properties of different materials and elements
- elemental states and properties
- motion
- electricity
- vision
- temperature
- elasticity
...and that is only a small portion!
Keep in mind also that this is only a broad generalization of the general topics and that these are only basic summaries of different topics.
I don't mean to discourage you, but it is a very large topic that you asking about and it is too much for anyone to explain. If you take any computer programming course in college or university they will usually teach you the basic physics you will need to know.
I'm going to try to beat SonGouki's 19 entries.
1) Torque
2) Gravity
3) Pressure
4) Resistance
5) Kinetic energy
6) Waves
7) Refraction
8) Reflection
7) Mass
9) Speed
10) Friction
11) Acceleration
12) Thermostatic variations
13) Relativity
14) Potential energy
15) Elastic energy
16) The reactivity series
17) Chemical properties
18) Weight
19) Light distortion
20) The visible spectrum
21) Fusion
22) Fission
23) Particle radiation
And just for fun:
24) The use of accelerated particles to produce anti-matter
25) Trans-dimensional tears
26) Black holes
I think we've made our point clear:
You can't make a physics program.
You could make a program that processes known physics
equations:
(I'm not quite sure about the C constant)Code:Const C = (3 ^ 10)
Dim M as Double, E as Double
M = InputBox("What is the mass of the object?")
E = M * (C * C)
MsgBox("Energy: " & E)
Anyway, it's an idea, perhaps you could use more equations
and one day, you'll have the biggest equation database in
the world and people will come from miles around to admire
your program.
You could, however try something else.
C = 3 * 10^8 ms^-1