View unanswered posts | View active topics
| Author |
Message |
|
idle
|
Post subject: Re: 2D physics engine (Verlet) Posted: Tue Oct 04, 2011 8:57 pm |
|
Joined: Fri Sep 21, 2007 5:52 am Posts: 2506 Location: New Zealand
|
|
Generally speaking you don't, the fixed frame rate ensures that the physics updates remain constant (assuming that the renders can handle the target speed) Though you can turn off the frame rate sync if you wish but then it'll mean you get variable speeds which isn't really of much use since it doesn't use time deltas in the update, the physics updates are a function of the Frame rate.
You might want to look at the Chipmunk wrappers which is more stable.
The Verlet engine has a couple of issues to be aware of it doesn't always stabilize - items stacked on top of each others can cause jitters If too much force is applied to an object it might invert -turns inside out which will then cause the object to go out of control)
As how to turn off the FPS sync it's a parameter in create engine function if I remember correctly
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
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
|