public void FixedUpdate() { if (GsLiveRealtime.IsCurrentPlayerObserving(this)) { return; } _rBody.position = Vector3.MoveTowards(_rBody.position, _mNetworkPosition, _mDistance * (1.0f / GsLiveRealtime.SerializationRate)); _rBody.rotation = Quaternion.RotateTowards(_rBody.rotation, _mNetworkRotation, _mAngle * (1.0f / GsLiveRealtime.SerializationRate)); }
public void Update() { if (GsLiveRealtime.IsCurrentPlayerObserving(this)) { return; } _transform.position = Vector3.Lerp(_transform.position, _mNetworkPosition, Time.deltaTime * lerpRatePosition); _transform.rotation = Quaternion.Lerp(_transform.rotation, _mNetworkRotation, Time.deltaTime * lerpRateRotation); _transform.localScale = _mNetworkScale; }