Class PositionPredictor
Inheritance
System.Object
PositionPredictor
Syntax
public class PositionPredictor
Properties
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Smoothing
Declaration
public float Smoothing { get; set; }
Property Value
Type |
Description |
System.Single |
|
Methods
AddPosition(Vector3, Single, Single)
Declaration
public void AddPosition(Vector3 pos, float deltaTime, float lookaheadTime)
Parameters
Type |
Name |
Description |
Vector3 |
pos |
|
System.Single |
deltaTime |
|
System.Single |
lookaheadTime |
|
Declaration
public void ApplyTransformDelta(Vector3 positionDelta)
Parameters
Type |
Name |
Description |
Vector3 |
positionDelta |
|
PredictPosition(Single)
Declaration
public Vector3 PredictPosition(float lookaheadTime)
Parameters
Type |
Name |
Description |
System.Single |
lookaheadTime |
|
Returns
PredictPositionDelta(Single)
Declaration
public Vector3 PredictPositionDelta(float lookaheadTime)
Parameters
Type |
Name |
Description |
System.Single |
lookaheadTime |
|
Returns
Reset()
Declaration