InterpolationTransformSynchronizable Class

Interpolate transform position and rotation using selected interpolation method.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public class InterpolationTransformSynchronizable : Synchronizable
Inheritance
Object    Object    Component    Behaviour    MonoBehaviour    CommunicationBridge    CommunicationBridgeUID    Synchronizable    InterpolationTransformSynchronizable

Remarks

Properties

position

The world space position of the Transform.

On set, moves position.

Methods

AssembleData
(Overrides SynchronizableAssembleData(Writer, Byte))
Awake 
DisassembleData
(Overrides SynchronizableDisassembleData(Reader, Byte))
FixedUpdate 
MovePosition

Moves the transform towards position.

MoveRotation(Quaternion)

Rotates the transform to rotation.

MoveRotation(Vector3)

Rotates the transform to rotation.

OnValidate 
Reset
(Overrides SynchronizableReset)
SetInterpolationMethod

Set interpolation method of interpolation transform synchronizable to interpolation method

SetLocalBehaviour 
SetPosition

Sets the transform to a position.

SetRotation(Quaternion)

Set the rotation the transform to rotation.

SetRotation(Vector3)

Set the rotation the transform to rotation.

Update 

Fields

ClientPrediction Enabling this can reduces the perceived latency. It is intended to be used when MovePosition is frequently called.
InterpolationMethod Behavior of transform
LocalBehaviour Behavior of transform when set locally.

See Also