Box2D Forums

It is currently Sun May 19, 2013 7:20 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Oct 31, 2007 11:46 am 
Offline

Joined: Wed Oct 31, 2007 11:42 am
Posts: 7
After a quick glance at the documentation I wasn't able to find an answer to this question...is there a way to increase the simulation speed of the physics? For example the cubes in the pyramid demo fall pretty slowly and I'd like them to fall more quickly. Decreasing the hertz (step) time isn't a solution since it changes the behavior of the physics. Is there an function to call that magically do what I'm asking :)?


Top
 Profile  
 
PostPosted: Wed Oct 31, 2007 12:47 pm 
Offline

Joined: Wed Oct 24, 2007 12:14 pm
Posts: 38
Paragon wrote:
After a quick glance at the documentation I wasn't able to find an answer to this question...is there a way to increase the simulation speed of the physics? For example the cubes in the pyramid demo fall pretty slowly and I'd like them to fall more quickly. Decreasing the hertz (step) time isn't a solution since it changes the behavior of the physics. Is there an function to call that magically do what I'm asking :)?


Increase forces (ie gravity) applied to your objects, it will cause higher acceleration and higher speed of the objects (and more problems for the physics engine:D ).


Top
 Profile  
 
PostPosted: Wed Oct 31, 2007 1:34 pm 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
The cubes are dropping at full gravity with no damping. However, the pyramid is 25 meters tall with 1 meter cubes and large objects may seem to fall slower if you zoom out.

You can make stuff fall faster by increasing gravity, but you will likely have reduced stacking stability.


Top
 Profile  
 
PostPosted: Mon Nov 05, 2007 3:25 pm 
Offline

Joined: Wed Oct 31, 2007 11:42 am
Posts: 7
Thanks for the suggestions. I have it simulating at the speed I want now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group