Advantages of 2d simulations

Discuss new features and future development.

Advantages of 2d simulations

Postby pwagner » Tue Apr 05, 2011 12:53 am

Hey,

as I'm still in search for the right library to use I would like to hear some opinions about the advantages of 2d simulations in contrast to 3d simulations. I mean would it be reasonable to use a 3d library like ODE, Bullet or newton to simulate 2d problems?
As I found out Bullet has some 2d objects but I never used Bullet so I'm not aware of the possibilities and limits. Is there any difference in accuracy or speed compared to Chipmunk?
Maybe some of you have had the same questions and found an answer?
pwagner
 
Posts: 21
Joined: Wed Mar 23, 2011 1:59 am

Re: Advantages of 2d simulations

Postby slembcke » Tue Apr 05, 2011 9:02 am

Using a 3D engine for 2D physics is an absolute pain. It's slow, and you have to do a fair amount of work to continually force the simulation to stay 2D. I tried using ODE for 2D physics for a while and decided it was too painful. It added nothing except unnecessary complexity and workarounds. It was more painful than writing my own physics engine. :p
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Advantages of 2d simulations

Postby pwagner » Tue Apr 05, 2011 9:15 am

Yeah thought so.
But the main problem I'm facing right now is to decide to use 2d or 3d. Let's assume you have to model/simulate a pendulum. It's quite possible to simulate a 2d oscillation but what about the third dimension? Couldn't it result in a "total" different motion if you would simulate it 3d?
pwagner
 
Posts: 21
Joined: Wed Mar 23, 2011 1:59 am

Re: Advantages of 2d simulations

Postby slembcke » Tue Apr 05, 2011 9:23 am

No. Why would it?
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Advantages of 2d simulations

Postby pwagner » Wed Apr 06, 2011 1:59 am

Butterfly-Effect ^^
pwagner
 
Posts: 21
Joined: Wed Mar 23, 2011 1:59 am


Return to Features/Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron