Photon Unity Networking  v1.84
English | 日本語 | 한국
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

Enumerator
Disabled 
SynchronizeValues 
EstimateSpeedAndTurn 
FixedSpeed 
Enumerator
Disabled 
FixedSpeed 
EstimatedSpeed 
SynchronizeValues 
Lerp 

Member Data Documentation

bool PhotonTransformViewPositionModel.DrawErrorGizmo = true
bool PhotonTransformViewPositionModel.ExtrapolateIncludingRoundTripTime = true
int PhotonTransformViewPositionModel.ExtrapolateNumberOfStoredPositions = 1
ExtrapolateOptions PhotonTransformViewPositionModel.ExtrapolateOption = ExtrapolateOptions.Disabled
float PhotonTransformViewPositionModel.ExtrapolateSpeed = 1f
float PhotonTransformViewPositionModel.InterpolateLerpSpeed = 1f
float PhotonTransformViewPositionModel.InterpolateMoveTowardsAcceleration = 2
float PhotonTransformViewPositionModel.InterpolateMoveTowardsDeceleration = 2
float PhotonTransformViewPositionModel.InterpolateMoveTowardsSpeed = 1f
InterpolateOptions PhotonTransformViewPositionModel.InterpolateOption = InterpolateOptions.EstimatedSpeed
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 ) } )
bool PhotonTransformViewPositionModel.SynchronizeEnabled
bool PhotonTransformViewPositionModel.TeleportEnabled = true
float PhotonTransformViewPositionModel.TeleportIfDistanceGreaterThan = 3f