This commit is contained in:
sardelka9515 2022-08-22 19:27:25 +08:00
parent eb31a33104
commit d25c2539e0
2 changed files with 4 additions and 19 deletions

View File

@ -16,7 +16,7 @@ using System.Resources;
// Version informationr(
[assembly: AssemblyVersion("1.5.2.103")]
[assembly: AssemblyFileVersion("1.5.2.103")]
[assembly: AssemblyVersion("1.5.2.104")]
[assembly: AssemblyFileVersion("1.5.2.104")]
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]

View File

@ -273,13 +273,11 @@ namespace RageCoop.Client
MainVehicle.Quaternion = Quaternion;
return;
}
else if (dist <= 0.03)
else if (dist > 0.03)
{
return;
MainVehicle.Velocity = Velocity + cali;
}
MainVehicle.Velocity = Velocity+cali;
Vector3 calirot;
if (IsFlipped || (calirot = GetCalibrationRotation()).Length()>50)
{
@ -291,19 +289,6 @@ namespace RageCoop.Client
{
MainVehicle.RotationVelocity = RotationVelocity + calirot * 0.2f;
}
#if DEBUG_VEH
if (_orgTrace.Count >= 30)
{
_orgTrace.RemoveAt(0);
}
if (_predictedTrace.Count >= 30)
{
_predictedTrace.RemoveAt(0);
}
_orgTrace.Add(Position);
_predictedTrace.Add(_predictedPos);
#endif
}
private Vector3 GetCalibrationRotation()
{