damiensturdy
21-02-2008 21:41:23
Gah, not enough space to explain it properly, but basically,
We want our game to render at the highest FPS possible, and we want the physics to remain stable and keep it untied from the FPS. In the past I had assumed that in any physics engine, a fixed timestep is a must. However, I note that in OgreNewt people have used varying timestep.
We are using the same code to update the physics as is used in Stunt Playground. (Sweet little game there by the way!)
the problem is that the objects jitter around like crazy! The camera is following its target flawlessly, but the physics objects are twitching forward and backwards and I don't really know how to explain the problem, but we have a video.
http://www.flow3d.org/AD/mazemonk.htm
If you watch you can see the robot is twitching because the background is shaking. (the camera is not physics enabled so follows its target fine with no twitching.)
How do you avoid this twitching of objects?
Let me know if you need any other information. I am at a loss as to what the cause could be so I dont know what to provide you with!
Thanks,
[edit]
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=6522
Looks like this guy has something quite similar? (sorry, Did not notice the thread!) we cannot simply callupdate(60) however, this alone ties it to the render FPS which is what we are trying to avoid, does it not?
We want our game to render at the highest FPS possible, and we want the physics to remain stable and keep it untied from the FPS. In the past I had assumed that in any physics engine, a fixed timestep is a must. However, I note that in OgreNewt people have used varying timestep.
We are using the same code to update the physics as is used in Stunt Playground. (Sweet little game there by the way!)
the problem is that the objects jitter around like crazy! The camera is following its target flawlessly, but the physics objects are twitching forward and backwards and I don't really know how to explain the problem, but we have a video.
http://www.flow3d.org/AD/mazemonk.htm
If you watch you can see the robot is twitching because the background is shaking. (the camera is not physics enabled so follows its target fine with no twitching.)
How do you avoid this twitching of objects?
Let me know if you need any other information. I am at a loss as to what the cause could be so I dont know what to provide you with!
Thanks,
[edit]
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=6522
Looks like this guy has something quite similar? (sorry, Did not notice the thread!) we cannot simply callupdate(60) however, this alone ties it to the render FPS which is what we are trying to avoid, does it not?