Page 1 of 1

Trying to understand the physics engine options

Posted: Sat Jul 28, 2012 11:22 pm
by opticdrive
I was wondering what peoples preferences for their physics engine were and why? I have been reading about Tokamak (http://www.tokamakphysics.com),Newton (http://newtondynamics.com/forum/newton.php),Bullet(http://bulletphysics.org/wordpress/) and ODE (http://www.ode.org/) but I don't understand their pros/cons. This has lead me to look into PAL (http://www.adrianboeing.com/pal/index.html) too, but I can't figure out if this would leave me without useful features down the line if I choose to go with PAL. Any and all help would be much appreciated.

Re: Trying to understand the physics engine options

Posted: Sat Jul 28, 2012 11:38 pm
by CuteAlien
Pro for Bullet and ODE - they are opensource and have liberal licenses (similar to Irrlicht). Otherwise they are probably all fine unless you have very specific needs. If you have those you should look at the documentation if whatever you want is supported.

Re: Trying to understand the physics engine options

Posted: Sun Jul 29, 2012 12:06 am
by opticdrive
My needs I believe are:
  • Lots of blocks/rocks/objects that can be hit, but hidden until an event - such as getting hit really hard for breakable walls
  • wheels and axil
  • Some ability to pull off a wind look for tree branches and leafs
  • It would be really awesome if the was something for fabric too
  • Dent-able surface?

Re: Trying to understand the physics engine options

Posted: Sun Jul 29, 2012 12:46 am
by CuteAlien
- Hiding objects is something you code.
- Breakable walls could be tricky as it's not just a physics problem but also a graphicial problem (as 3d objects are empty - they don't have cutting edges when you split them). Often people use particles for that or just create several objects and replace the hit object by that.
- wheels and axil? I guess it's for a car - there's ways to get that working with all of them.
- Stuff like wind is usually always done with animations (overkill to use phycics for that unless you make a game about trees)
- Fabric needs soft body dynamics. I think Bullet has those, ODE to my knowledge not. Don't know about the others.
- Dent-able surface sounds hard. I think the easiest way to do that is replacing the objects by dented objects when they got hit (typically used in racing games). Although I think it's a feature coming soon (seen something in that direction recently in a preview). But cutting edge stuff - fake it.

Re: Trying to understand the physics engine options

Posted: Mon Jul 30, 2012 4:20 am
by opticdrive
Ok, thanks. I guess I will check out the bullet-physics engine then.

Re: Trying to understand the physics engine options

Posted: Mon Jul 30, 2012 5:28 pm
by Granyte
Bullet physics has two demo for breakable objects one where you link object with a breakable contrain that will break after a certain amount of force has been aplied.

The other shows how to break object in smaller part using voronoi fracture but you have to code by your self when they break

Re: Trying to understand the physics engine options

Posted: Wed Aug 08, 2012 2:05 am
by Virion
usually vehicles are not moved by the wheels. the wheels are just for display purpose. usually they cast 4 rays, 1 on each side of the vehicle to determine the distance it should stay above the ground. wheels just rotate by itself according to the vehicle's velocity and direction.

Re: Trying to understand the physics engine options

Posted: Fri Aug 10, 2012 10:12 pm
by devsh
go for Bullet

They are about to integrate OpenCL and that will enable you to use the spare GPU on the intel i3,i5,i7 ivy bridge that is just laying there if you have a proper graphics card