Class NetworkTransform.RateData
Inheritance
System.Object
NetworkTransform.RateData
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FishNet.Component.Transforming
Assembly: FishNet.Runtime.dll
Syntax
public class RateData : IResettable
Constructors
RateData()
Declaration
[Preserve]
public RateData()
Fields
LastUnalteredPositionRate
Unaltered rate for position calculated through position change and tickspan.
Declaration
public float LastUnalteredPositionRate
Field Value
Type | Description |
---|---|
System.Single |
Position
Rate for position after smart calculations.
Declaration
public float Position
Field Value
Type | Description |
---|---|
System.Single |
Rotation
Rate for rotation after smart calculations.
Declaration
public float Rotation
Field Value
Type | Description |
---|---|
System.Single |
Scale
Rate for scale after smart calculations.
Declaration
public float Scale
Field Value
Type | Description |
---|---|
System.Single |
TickSpan
Number of ticks the rates are calculated for. If TickSpan is 2 then the rates are calculated under the assumption the transform changed over 2 ticks.
Declaration
public uint TickSpan
Field Value
Type | Description |
---|---|
System.UInt32 |
Methods
InitializeState()
Declaration
public void InitializeState()
ResetState()
Declaration
public void ResetState()
Update(NetworkTransform.RateData)
Declaration
public void Update(NetworkTransform.RateData rd)
Parameters
Type | Name | Description |
---|---|---|
NetworkTransform.RateData | rd |
Update(Single, Single, Single, Single, UInt32, Single)
Updates rates.
Declaration
public void Update(float position, float rotation, float scale, float unalteredPositionRate, uint tickSpan, float timeRemaining)
Parameters
Type | Name | Description |
---|---|---|
System.Single | position | |
System.Single | rotation | |
System.Single | scale | |
System.Single | unalteredPositionRate | |
System.UInt32 | tickSpan | |
System.Single | timeRemaining |