Trying to understand the physics engine options
-
- Posts: 7
- Joined: Sun Jul 01, 2012 5:27 am
Trying to understand the physics engine options
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
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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 7
- Joined: Sun Jul 01, 2012 5:27 am
Re: Trying to understand the physics engine options
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
- 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.
- 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 7
- Joined: Sun Jul 01, 2012 5:27 am
Re: Trying to understand the physics engine options
Ok, thanks. I guess I will check out the bullet-physics engine then.
Re: Trying to understand the physics engine options
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
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
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.
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
Re: Trying to understand the physics engine options
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
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