Physics Engines In Video Games

Homework giving you a headache? Math gives you a migraine? Can't quite figure out how to do something in photoshop? Never fear, the other members of CAA share their expertise in this forum.

Physics Engines In Video Games

Postby Zilch » Mon Jul 18, 2005 6:17 pm

Could some one give me a hand with this? I need info for a school project (yeah, I'm doing work in the summer. go figure) , so any knowledge you have would be appreciated. 10-Q.
Uh-oh! Your sig have started to move! -- MOES.

Image

I suppose you could find females attracted to you if you stop being bad at flirting. -MSP
User avatar
Zilch
 
Posts: 1539
Joined: Fri Sep 12, 2003 4:00 am
Location: haha im n ur bse kllin ur d00ds

Postby shooraijin » Mon Jul 18, 2005 8:40 pm

Like how, their implementation, limitations, ... ?
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9928
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby TheMelodyMaker » Mon Jul 18, 2005 10:01 pm

The only "physics engine" I use in The Traveller's Guide that I can think of is gravity. I've figured out normal gravity to be a quarter of a pixel per frame, assuming 80 frames per second (the other "FPS"... :lol: ).

I hope that helps a little... that's all I can think of to say at the moment. ^_^;
[color=RoyalBlue]@)}~`,~ [/color]Carry this rose in your signature as thanks to Inkhana, for all she has done for us in the past.Even though she is no longer a moderator, she has done an awful lot for us while she was and she deserves thanks. ^_^
TheMelodyMaker
 
Posts: 1904
Joined: Sun Jul 20, 2003 10:13 pm

Postby LorentzForce » Tue Jul 19, 2005 10:06 am

A physics engine in a game can be ridiculously complicated, or ridiculously simple, depending on how realistic it is. Usually in most games it's just gravity, velocity, deceleration due to air friction, and contact.

Gravity takes care of falling objects.
Velocity is which direction the object is moving, as well as rotation.
Deceleration takes care of objects slowing down. Makes it look "real".
Contact is when two objects touch each other. Will they stop completely? Will one go through another?

That's the basic part of physics in gaming. Harder part comes in when you have to figure out how to implement it. Say in 3D games, it's very difficult to let all objects to have all the above attributes, because that'll severely reduce the performance of the engine. So, even in HL2, the walls are still brushes without any attributes (other than texture) and rest are all models. How "real" the models behave will determine how "real" it'll appear on the screen.

Any more questions?
Image
User avatar
LorentzForce
 
Posts: 1263
Joined: Sun Jun 01, 2003 3:18 am
Location: Between B and E

Postby Technomancer » Tue Jul 19, 2005 10:18 am

There are a couple of books on physics for game programmers; you may be able to find one of them in your local library. You can certainly look them up on Amazon.
The scientific method," Thomas Henry Huxley once wrote, "is nothing but the normal working of the human mind." That is to say, when the mind is working; that is to say further, when it is engaged in corrrecting its mistakes. Taking this point of view, we may conclude that science is not physics, biology, or chemistry—is not even a "subject"—but a moral imperative drawn from a larger narrative whose purpose is to give perspective, balance, and humility to learning.

Neil Postman
(The End of Education)

Anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that my ignorance is just as good as your knowledge

Isaac Aasimov
User avatar
Technomancer
 
Posts: 2379
Joined: Fri Jun 13, 2003 11:47 am
Location: Tralfamadore


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 157 guests