Click or drag to resize

StrixVehicleMovementSynchronizer Class

Synchronizer suitable for synchronizing vehicles such as cars and planes.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          SoftGear.Strix.Unity.RuntimeStrixBehaviour
            SoftGear.Strix.Unity.RuntimeStrixVehicleMovementSynchronizer

Namespace:  SoftGear.Strix.Unity.Runtime
Assembly:  StrixUnityRuntime (in StrixUnityRuntime.dll) Version: 1.5.0
Syntax
C#
public class StrixVehicleMovementSynchronizer : StrixBehaviour

The StrixVehicleMovementSynchronizer type exposes the following members.

Constructors
  NameDescription
Public methodStrixVehicleMovementSynchronizer
Initializes a new instance of the StrixVehicleMovementSynchronizer class
Top
Properties
Methods
Fields
  NameDescription
Public fieldapproximatorAcceleration
Acceleration value used in the approximator. Set this value to the object's maximum acceleration.
Public fieldapproximatorAngularAcceleration
Angular acceleration value used in the approximator. Set this value to the object's maximum angular acceleration.
Public fieldAveragingWindowWidth
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.
Public fieldpositionTransform
Transform used to calculate and apply position. If not set current gameObject's transform is used.
Public fieldpredictionTime
Determines how far into the future the position is predicted. This value infulences the smoothness of the approximated trajectory.
Public fieldrotationTransform
Transform used to calculate and apply rotation. If not set current gameObject's transform is used.
Public fieldsnapDistance
Used to determine if the object reached the target position.
Public fieldteleportDistance
Used to determine if the object should be teleported to the target position.
Public fieldupdateMode
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.
Top
See Also