Problem with TransformView
Options
Hi,
I think there's a problem with PhotonTransformView class. In particular, when network position is interpolated with "EstimateSpeed" mode, the code is the following:
The result is that currentPosition moves only by a small fraction of the actual distance between currentPositon and targetPosition.
Why?
Thanks for help,
Devis
I think there's a problem with PhotonTransformView class. In particular, when network position is interpolated with "EstimateSpeed" mode, the code is the following:
case PhotonTransformViewPositionModel.InterpolateOptions.EstimatedSpeed:
int positionsCount = Mathf.Min( 1, m_OldNetworkPositions.Count );
float estimatedSpeed = Vector3.Distance( m_NetworkPosition, GetOldestStoredNetworkPosition() ) / positionsCount;
currentPosition = Vector3.MoveTowards( currentPosition, targetPosition, Time.deltaTime * estimatedSpeed );
break;
estimateSpeed
value is not really a speed. It's simply a distance, and positionsCount is always equal to 1.The result is that currentPosition moves only by a small fraction of the actual distance between currentPositon and targetPosition.
Why?
Thanks for help,
Devis
0
Comments
-
Hi,
any news about this bug?
Thanks,
Devis0