Remove Acceleration

This commit is contained in:
Sardelka 2022-08-13 09:31:09 +08:00
parent 4dc3cc5c28
commit 91b0afb6ef
4 changed files with 0 additions and 7 deletions

View File

@ -361,7 +361,6 @@ namespace RageCoop.Client
v.ThrottlePower=packet.ThrottlePower;
v.BrakePower=packet.BrakePower;
v.Velocity=packet.Velocity;
v.Acceleration=packet.Acceleration;
v.RotationVelocity=packet.RotationVelocity;
v.DeluxoWingRatio=packet.DeluxoWingRatio;
v.LastSynced=Main.Ticked;

View File

@ -101,7 +101,6 @@ namespace RageCoop.Client
BrakePower = veh.BrakePower,
};
if (v.LastVelocity==default) {v.LastVelocity=packet.Velocity; }
packet.Acceleration = (packet.Velocity-v.LastVelocity)*1000/v.LastSentStopWatch.ElapsedMilliseconds;
v.LastSentStopWatch.Restart();
v.LastVelocity= packet.Velocity;
if (packet.Flags.HasVehFlag(VehicleDataFlags.IsDeluxoHovering)) { packet.DeluxoWingRatio=v.MainVehicle.GetDeluxoWingRatio(); }

View File

@ -57,7 +57,6 @@ namespace RageCoop.Client
#endregion
#region -- CRITICAL STUFF --
internal Vector3 Acceleration { get; set; }
internal Vector3 RotationVelocity { get; set; }
internal float SteeringAngle { get; set; }
internal float ThrottlePower { get; set; }

View File

@ -26,7 +26,6 @@ namespace RageCoop.Core
// public Vector3 Rotation { get; set; }
public Vector3 Velocity { get; set; }
public Vector3 Acceleration { get; set; }
public Vector3 RotationVelocity { get; set; }
@ -75,7 +74,6 @@ namespace RageCoop.Core
byteArray.AddVector3(Position);
byteArray.AddQuaternion(Quaternion);
byteArray.AddVector3(Velocity);
byteArray.AddVector3(Acceleration);
byteArray.AddVector3(RotationVelocity);
byteArray.AddFloat(ThrottlePower);
byteArray.AddFloat(BrakePower);
@ -189,8 +187,6 @@ namespace RageCoop.Core
// Read velocity
Velocity =reader.ReadVector3();
Acceleration=reader.ReadVector3();
// Read rotation velocity
RotationVelocity=reader.ReadVector3();