Problem with Chaos vehicle

I’ve been having issues with the chaos vehicles where the movement is extremely clicky and jittery, I don’t have any solution for this problem.

I am possessing the driver seat and sending input to the tank via bpi which I think is the problem but I’m not sure yet.

a video of Client 1 and client 2 below.

Hi There,

So this can happen especially on network since Chaos Vehicle is a physics motion simulation and you are sending the inputs through a BPI which If you’re applying throttle locally and also on server, you’ll get constant corrections. This would be much delayed more jittery (rubberbanding) more in an online version.

What you need to do is call RPC (Remote Procedure Call) from your vehicle to Server and server handles the movement. So there is no correction between local and server.

Client ->Input(RPC)-> Force/ Throttle/Turn (Server) → SimulatePhsyics (Server) → ReplicatedTransformVehicle(AllClients)

Basically SendInputs(Local)->Server , DoPhysicsSimulation(Server)

If this doesn’t solve we can look into how inputs are handled for turret, in terms of animation, mesh driven motion etc, some setups can cause this if there is a problem with tick order and motion handling.

1 Like

Hi, I cant have client to server RPCs on the tank pawn since the tank pawn is never actually owned or possessed by anyone (Because it is a shared pawn with no real owner) so I’ve just been using server RPCs before calling the bpi event, is that a problem and should be changed?

So if you are using server RPC and calling BPI then it should be fine, Its correct.

You can try increasing network update rate and be sure that the simulation is on server side (nothing interfering)

Have you tried this in not client but listen server? is it still the same?

If on listen server not a problem maybe there is something wrong with animation / input transform setup?

Yes it works fine on listen server but the client sees the movement as clicky from its perspective, as seen in the video below. I’ve set NetUpdateFrequency to 150 but still very clicky. the only thing that’s in animation blueprint is the tank tracks and rims + turret rotation and gun elevation. And if the tank does need to be possessed for stable replication, what would be the best approach for a multicrew tank?

for anyone that needs this I seemed to have smoothed it out by enabling Resimulation in the tank pawn class settings, although I have heard its taxing on performance it seems to be the only way of fixing my problem.

1 Like

Makes sense, well somehow there should be a prediction or a very very high update which is more costly so thats the method, there is interpolation also maybe it can be less costly. Glad that it worked.

Edit : didn’t know 5.7 brought this so Tutorial: Networked Physics - Pawn Tutorial