What exactly is a physics engine?

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
RealmSeeker
Gnoblar
Posts: 12
Joined: Wed Feb 09, 2011 9:50 pm
x 1

What exactly is a physics engine?

Post by RealmSeeker »

Is a physics engine only collision detection and apply some forces or is there more to it?

EDIT: fixed typos
User avatar
chaosavy
Silver Sponsor
Silver Sponsor
Posts: 578
Joined: Mon Jun 15, 2009 8:29 pm
x 64

Re: What exactly is a physics engine?

Post by chaosavy »

there is a bit more to it depending on the engine, some will have character controllers. What a character controler is basically a representation of a walking "being" so it can go up stairs and up slopes, etc. Also some will have vehicle representations, different types of objects (some that when colliding with other objects will cause "apply some forces" some that won't). Also physics engines tend to have ray scene queries. They also tend to have hinges and joints.
Visit http://www.VoidDestroyer.com to check out my space sim project - Void Destroyer
RealmSeeker
Gnoblar
Posts: 12
Joined: Wed Feb 09, 2011 9:50 pm
x 1

Re: What exactly is a physics engine?

Post by RealmSeeker »

Think it will mean I have to check it out myself.

What engine would be suggestable for:
- characters
- carrages (e.g. with horses)
- boats/water
- flying object e.g. planelike objects
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4308
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 137

Re: What exactly is a physics engine?

Post by spacegaier »

As already mentioned it highly depends on the engine, but some also support the physical correct simulation of fluids or cloth.

E.g. have a look at the PhysX features to get an idea of what big physics engines are capable of: http://developer.nvidia.com/object/physx_features.html
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
RealmSeeker
Gnoblar
Posts: 12
Joined: Wed Feb 09, 2011 9:50 pm
x 1

Re: What exactly is a physics engine?

Post by RealmSeeker »

If you take use of a physics engine, it looks like to start with it as soon as possible as I know class structures in general already.

Or would people advice, fool around with only the OGRE first and later implement physics into it/start over?
User avatar
chaosavy
Silver Sponsor
Silver Sponsor
Posts: 578
Joined: Mon Jun 15, 2009 8:29 pm
x 64

Re: What exactly is a physics engine?

Post by chaosavy »

I did Ogre only for quite some time at first then moved onto using phyisics once I got to the point of wanting my objects not to fly through each other
Visit http://www.VoidDestroyer.com to check out my space sim project - Void Destroyer