Problem with vehicle jittering

Grab your favourite IDE and tinker with the innards of game engines

Problem with vehicle jittering

Postby Psy_Commando on Fri May 18, 2012 1:06 am

I already posted this on the hlcoder list and the source sdk coding thread, but without much success.

I've made a very simple vehicle entity that runs on the alien swarm codebase. This entity is using predicted movement code along with a server side vphysic shadow to collide. Here's what it does ( with net_fakelag ) :

It vibrates on its forward axis.

Since all vehicle I made and even the buggy do this on the alien swarm codebase, I decided to try on the orange box. Here's the result :

No jittering at all.

Here's the code for the curious :

Shared:
vehicle_es_test.cpp - http://pastebin.com/Rkrw9ZJB

Client :
c_prop_sfr_vehicle.h - http://pastebin.com/tqUFNGQZ
c_prop_sfr_vehicle.cpp - http://pastebin.com/eCKcE3VX

Server :
prop_sfr_vehicle.h - http://pastebin.com/zPb3HbEh
prop_sfr_vehicle.cpp - http://pastebin.com/5y1m0S89


So I'm wondering how to fix that so it doesn't vibrate like that on alien swarm ? Since the marine entities don't vibrate like that in mp, so I'm guessing I'm missing something.
Psy_Commando
Dumpling
Dumpling
 
Joined: Sat Aug 06, 2011 4:48 am
Location: Quebec, Canada

Return to Programming

Who is online

Users browsing this forum: No registered users