private Movement DumpMovement(Transform transform, Rigidbody rigidbody, TankCollidersUnityComponent tankCollidersUnity) => new Movement { Position = TankPositionConverter.ConvertedSentToServer(tankCollidersUnity), Orientation = transform.rotation, Velocity = rigidbody.velocity, AngularVelocity = rigidbody.angularVelocity };
public ColliderNotFoundException(TankCollidersUnityComponent tankColliders, string colliderName) : base(string.Concat(objArray1)) { object[] objArray1 = new object[] { "TankColliders=", tankColliders, " colliderName=", colliderName }; this.TankColliders = tankColliders; this.ColliderName = colliderName; }
public static Vector3 ConvertedReceptionFromServer(Vector3 serverPosition, TankCollidersUnityComponent tankCollidersUnity, Vector3 transformPosition) { Vector3 vector = serverPosition - tankCollidersUnity.GetBoundsCenterGlobal(); return(transformPosition + vector); }
public static Vector3 ConvertedSentToServer(TankCollidersUnityComponent tankCollidersUnity) => tankCollidersUnity.GetBoundsCenterGlobal();