Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Jerky character movement  (Read 876 times)

::SONB::

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 1
    • View Profile
Jerky character movement
« on: September 10, 2006, 12:47:10 PM »

Hi all!

I'm using the example code from Wiki:
http://www.ogre3d.org/wiki/index.php/Using_OIS

Well, I created a character using Ogre, nxOgre and OIS. It works great, it moves in any direction, BUT sometimes, when I move the character, there are moments, when it jumps in his movement direction, like in those online games when it lags, you know what I mean?

Maybe this is a problem with OIS.. Or with Ogre?..

What do you think?


::SONB::
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Jerky character movement
« Reply #1 on: September 10, 2006, 01:00:45 PM »

If you are moving your characters with nxOgre physics, you should post there about smoothing movement. If, you are just moving the character directly with input, just use a smoothing value multiplied by the movement speed to always get the same motion whether the frame took 22ms to render or 1 second.
Logged