StrixVehicleMovementSynchronizer Class |
Namespace: SoftGear.Strix.Unity.Runtime
public class StrixVehicleMovementSynchronizer : StrixBehaviour
The StrixVehicleMovementSynchronizer type exposes the following members.
Name | Description | |
---|---|---|
StrixVehicleMovementSynchronizer | Initializes a new instance of the StrixVehicleMovementSynchronizer class |
Name | Description | |
---|---|---|
PositionTransform | ||
RotationTransform |
Name | Description | |
---|---|---|
ApplyPredictionData |
Error correction function. Overload this to implement your own error correction.
| |
FixedUpdate | ||
OnStrixDeserialize | (Overrides StrixBehaviourOnStrixDeserialize(StrixSerializationProperties).) | |
OnStrixSerialize | (Overrides StrixBehaviourOnStrixSerialize(StrixSerializationProperties).) | |
Update |
Name | Description | |
---|---|---|
approximatorAcceleration |
Acceleration value used in the approximator.
Set this value to the object's maximum acceleration.
| |
approximatorAngularAcceleration |
Angular acceleration value used in the approximator.
Set this value to the object's maximum angular acceleration.
| |
AveragingWindowWidth |
Determines how many frames of position history will be used when calculating velocity.
Only used when UpdateMode is set to Update. Minimum value is 2. When set to 2, no averaging is applied.
| |
positionTransform |
Transform used to calculate and apply position. If not set current gameObject's transform is used.
| |
predictionTime |
Determines how far into the future the position is predicted.
This value infulences the smoothness of the approximated trajectory.
| |
rotationTransform |
Transform used to calculate and apply rotation. If not set current gameObject's transform is used.
| |
snapDistance |
Used to determine if the object reached the target position.
| |
teleportDistance |
Used to determine if the object should be teleported to the target position.
| |
updateMode |
If you update position and rotation of the vehicle in update, should be set to Update.
If you update position and rotation of the vehicle in FixedUpdate, should be set to FixedUpdate.
|