Page 7 of 8

Re: Version Roadmap

Posted: Sat Aug 06, 2011 10:18 am
by Spankenstein
I've attached a small project highlighting the weapon problem with character control.

Press 'c' to activate/deactivate the character controller.
WASD keys to move.
Mouse to look around.

- 'IsFixedTimeStep = false' causes the CharacterAABB (green) to jitter when moving
- 'weaponBox' (blue) never jitters but doesn't use the physics engine
- 'weaponBox2' (blue) always jitters no matter what

How can I fix the jittering?

Re: Version Roadmap

Posted: Sat Aug 06, 2011 12:34 pm
by Spankenstein
Solves the problem for non entities (objects that aren't associated with the physics space):

'CharacterControllerInput' should update BEFORE the associated camera updates.

Not sure what to do about entities though but the first person weapon doesn't need to be an entity. :)

Re: Version Roadmap

Posted: Sat Aug 06, 2011 8:32 pm
by Norbo
I don't see any unexpected behavior:

-When IsFixedTimeStep = true and Space.Update() is not given an elapsed time, the game runs at a proper speed and nothing jitters. AABB's appear to be a frame behind, because they are. AABB's are computed at the beginning of a frame for broad phase use. Entity positions are computed at the end of a frame.

-When IsFixedTimeStep = false and Space.Update() is not given an elapsed time, it runs extremely fast, but without any apparent issues (though it's hard to tell :))

-When IsFixedTImeStep = false and Space.Update() is given an elapsed time, jitter occurs as expected. This is because of the internal time stepping I mentioned earlier. It accumulates time, and when sufficient time elapses, it performs a time step. Since it cannot do fractional time steps, sometimes there will be a little time left over. The slightly irregular updates cause what appears to be 'jitter.' This is addressed by using interpolation buffers. Interpolation buffers blend together entities' positions and orientations with the time remainder to produce smooth movement. Information about it can be found in the asynchronous update documentation, though interpolation has a purpose outside of just updating on a second thread (as you've encountered :)): http://bepuphysics.codeplex.com/wikipag ... umentation

Re: Version Roadmap

Posted: Sat Aug 06, 2011 11:47 pm
by Spankenstein
Cool. Thanks for that. I understand what's going on now :)

Re: Version Roadmap

Posted: Mon Aug 08, 2011 6:41 am
by Norbo
Updated the roadmap to reflect v0.16.2's release.

Re: Version Roadmap

Posted: Wed Sep 07, 2011 2:53 am
by Norbo
Updated the road map to reflect v1.0.0's imminent release.

Re: Version Roadmap

Posted: Thu Sep 08, 2011 4:38 am
by Norbo
Updated the roadmap to reflect v1.0.0's release.

Re: Version Roadmap

Posted: Sun Sep 25, 2011 10:25 pm
by Fe_Yoshi
Will the road map be updated to reflect v1.0.0's past release?

Re: Version Roadmap

Posted: Sun Sep 25, 2011 10:32 pm
by Norbo
It was already updated tomorrow due to superluminal tachyonic disturbances.

Re: Version Roadmap

Posted: Mon Jun 11, 2012 4:40 pm
by Norbo
Updated the road map to reflect v1.2.0's release.

Re: Version Roadmap

Posted: Tue Jan 15, 2013 5:46 am
by Norbo
Updated the roadmap... because I felt like it.

Re: Version Roadmap

Posted: Sat Apr 13, 2013 9:37 pm
by Norbo
Updated main post to reflect the murdering of the development fork and the pushing of all commits to the main branch directly. Hopefully, less people will think BEPUphysics is dead now!

Re: Version Roadmap

Posted: Fri May 17, 2013 11:13 pm
by Norbo
Updated main post to reflect recent changes.

Re: Version Roadmap

Posted: Fri Sep 27, 2013 9:22 pm
by Norbo
Updated reflect main to recent post changes.

Re: Version Roadmap

Posted: Tue Dec 17, 2013 5:25 am
by Norbo
Updated main post to reflect v1.3.0's upcoming release.