Photon Unity Networking v1.101

Public Types | Public Attributes | List of all members
PhotonTransformViewPositionModel Class Reference

Public Types

enum  InterpolateOptions {
  InterpolateOptions.Disabled, InterpolateOptions.FixedSpeed, InterpolateOptions.EstimatedSpeed, InterpolateOptions.SynchronizeValues,
  InterpolateOptions.Lerp
}
 
enum  ExtrapolateOptions { ExtrapolateOptions.Disabled, ExtrapolateOptions.SynchronizeValues, ExtrapolateOptions.EstimateSpeedAndTurn, ExtrapolateOptions.FixedSpeed }
 

Public Attributes

bool SynchronizeEnabled
 
bool TeleportEnabled = true
 
float TeleportIfDistanceGreaterThan = 3f
 
InterpolateOptions InterpolateOption = InterpolateOptions.EstimatedSpeed
 
float InterpolateMoveTowardsSpeed = 1f
 
float InterpolateLerpSpeed = 1f
 
float InterpolateMoveTowardsAcceleration = 2
 
float InterpolateMoveTowardsDeceleration = 2
 
AnimationCurve InterpolateSpeedCurve
 
ExtrapolateOptions ExtrapolateOption = ExtrapolateOptions.Disabled
 
float ExtrapolateSpeed = 1f
 
bool ExtrapolateIncludingRoundTripTime = true
 
int ExtrapolateNumberOfStoredPositions = 1
 
bool DrawErrorGizmo = true
 

Member Enumeration Documentation

◆ ExtrapolateOptions

Enumerator
Disabled 
SynchronizeValues 
EstimateSpeedAndTurn 
FixedSpeed 

◆ InterpolateOptions

Enumerator
Disabled 
FixedSpeed 
EstimatedSpeed 
SynchronizeValues 
Lerp 

Member Data Documentation

◆ DrawErrorGizmo

bool PhotonTransformViewPositionModel.DrawErrorGizmo = true

◆ ExtrapolateIncludingRoundTripTime

bool PhotonTransformViewPositionModel.ExtrapolateIncludingRoundTripTime = true

◆ ExtrapolateNumberOfStoredPositions

int PhotonTransformViewPositionModel.ExtrapolateNumberOfStoredPositions = 1

◆ ExtrapolateOption

ExtrapolateOptions PhotonTransformViewPositionModel.ExtrapolateOption = ExtrapolateOptions.Disabled

◆ ExtrapolateSpeed

float PhotonTransformViewPositionModel.ExtrapolateSpeed = 1f

◆ InterpolateLerpSpeed

float PhotonTransformViewPositionModel.InterpolateLerpSpeed = 1f

◆ InterpolateMoveTowardsAcceleration

float PhotonTransformViewPositionModel.InterpolateMoveTowardsAcceleration = 2

◆ InterpolateMoveTowardsDeceleration

float PhotonTransformViewPositionModel.InterpolateMoveTowardsDeceleration = 2

◆ InterpolateMoveTowardsSpeed

float PhotonTransformViewPositionModel.InterpolateMoveTowardsSpeed = 1f

◆ InterpolateOption

InterpolateOptions PhotonTransformViewPositionModel.InterpolateOption = InterpolateOptions.EstimatedSpeed

◆ InterpolateSpeedCurve

AnimationCurve PhotonTransformViewPositionModel.InterpolateSpeedCurve
Initial value:
= new AnimationCurve( new Keyframe[] {
new Keyframe( -1, 0, 0, Mathf.Infinity ),
new Keyframe( 0, 1, 0, 0 ),
new Keyframe( 1, 1, 0, 1 ),
new Keyframe( 4, 4, 1, 0 ) } )

◆ SynchronizeEnabled

bool PhotonTransformViewPositionModel.SynchronizeEnabled

◆ TeleportEnabled

bool PhotonTransformViewPositionModel.TeleportEnabled = true

◆ TeleportIfDistanceGreaterThan

float PhotonTransformViewPositionModel.TeleportIfDistanceGreaterThan = 3f