Photon Fusion 1.1.10

Public Attributes | List of all members
NetworkTransform.InterpolatedTransformParameters Struct Reference

Struct that provides relevant parameters when interpolating a view representation with position and rotation data between two known states, referred as 'From' and 'To'. More...

Public Attributes

Vector3 InterpolatedPosition
 Position value interpolated between From (UninterpolatedPositionFrom) and To (UninterpolatedPositionTo) with factor InterpolationAlpha. More...
 
Vector3 InterpolatedPositionErrorCorrection
 Computed value for smooth correction of prediction error. In order to apply it, add its value to the InterpolatedPosition before setting the result to the view transform. The value will be Vector3.zero if there is no prediction error or InterpolateErrorCorrection is disabled. More...
 
Quaternion InterpolatedRotation
 Rotation value interpolated between From (UninterpolatedRotationFrom) and To (UninterpolatedRotationTo) with factor InterpolationAlpha. More...
 
Quaternion InterpolatedRotationErrorCorrection
 Computed value for smooth correction of prediction error. In order to apply it, multiply its value by the InterpolatedRotation before setting the result to the view transform. The value will be Quaternion.identity if there is no prediction error or InterpolateErrorCorrection is disabled. More...
 
float InterpolationAlpha
 Normalized factor that represents the exact point between From and To states at which the view should be displayed. More...
 
Vector3 UninterpolatedPositionFrom
 Position value at the From state. More...
 
Vector3 UninterpolatedPositionTo
 Position value at the To state. More...
 
Quaternion UninterpolatedRotationFrom
 Rotation value at the From state. More...
 
Quaternion UninterpolatedRotationTo
 Rotation value at the To state. More...
 

Detailed Description

Struct that provides relevant parameters when interpolating a view representation with position and rotation data between two known states, referred as 'From' and 'To'.

Member Data Documentation

◆ InterpolatedPosition

Vector3 InterpolatedPosition

Position value interpolated between From (UninterpolatedPositionFrom) and To (UninterpolatedPositionTo) with factor InterpolationAlpha.

◆ InterpolatedPositionErrorCorrection

Vector3 InterpolatedPositionErrorCorrection

Computed value for smooth correction of prediction error. In order to apply it, add its value to the InterpolatedPosition before setting the result to the view transform. The value will be Vector3.zero if there is no prediction error or InterpolateErrorCorrection is disabled.

◆ InterpolatedRotation

Quaternion InterpolatedRotation

Rotation value interpolated between From (UninterpolatedRotationFrom) and To (UninterpolatedRotationTo) with factor InterpolationAlpha.

◆ InterpolatedRotationErrorCorrection

Quaternion InterpolatedRotationErrorCorrection

Computed value for smooth correction of prediction error. In order to apply it, multiply its value by the InterpolatedRotation before setting the result to the view transform. The value will be Quaternion.identity if there is no prediction error or InterpolateErrorCorrection is disabled.

◆ InterpolationAlpha

float InterpolationAlpha

Normalized factor that represents the exact point between From and To states at which the view should be displayed.

◆ UninterpolatedPositionFrom

Vector3 UninterpolatedPositionFrom

Position value at the From state.

◆ UninterpolatedPositionTo

Vector3 UninterpolatedPositionTo

Position value at the To state.

◆ UninterpolatedRotationFrom

Quaternion UninterpolatedRotationFrom

Rotation value at the From state.

◆ UninterpolatedRotationTo

Quaternion UninterpolatedRotationTo

Rotation value at the To state.