Struct TransformErrorCorrector
- Namespace
- Netick.Unity
- Assembly
- Netick.Unity.dll
public struct TransformErrorCorrector
- Inherited Members
-
Fields
Field Value
- float
public Vector3 PosCurrentValue
Field Value
- Vector3
public Vector3 PosPreRollbackValue
Field Value
- Vector3
public Quaternion RotCurrentValue
Field Value
- Quaternion
public Quaternion RotPreRollbackValue
Field Value
- Quaternion
Methods
public void Init(Vector3 posVal, Quaternion rotVal)
Parameters
posVal
Vector3
rotVal
Quaternion
OnPostResimulation(Vector3, Quaternion, bool, bool)
public void OnPostResimulation(Vector3 posCurrentValue, Quaternion rotCurrentValue, bool calcPositionalError, bool calcRotationError)
Parameters
posCurrentValue
Vector3
rotCurrentValue
Quaternion
calcPositionalError
bool
calcRotationError
bool
public void OnPreRollback(Vector3 posVal, Quaternion rotVal)
Parameters
posVal
Vector3
rotVal
Quaternion
public void Render(ref Vector3 posInterpolatedValue, ref Quaternion rotInterpolationValue, float correctionMultiplier, float interpolationMultiplier, float correctionMaxBlendAlpha, float teleportThreshold, float deltaTime)
Parameters
posInterpolatedValue
Vector3
rotInterpolationValue
Quaternion
correctionMultiplier
float
interpolationMultiplier
float
correctionMaxBlendAlpha
float
teleportThreshold
float
deltaTime
float