Skip to content

Commit

Permalink
Apply prediction on server entity update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sardelka9515 committed Aug 17, 2022
1 parent 4d03f8e commit 9dcd6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RageCoop.Server/Scripting/ServerEntities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ internal void Update(Packets.VehicleSync p, Client sender)
Vehicles.TryAdd(p.ID, veh=new ServerVehicle(Server));
veh.ID=p.ID;
}
veh._pos = p.Position;
veh._pos = p.Position+p.Velocity*sender.Latency;
veh.Owner=sender;
veh._quat=p.Quaternion;
}
Expand Down

0 comments on commit 9dcd6bb

Please sign in to comment.