class MAGES::Networking::SyncTransform

Overview

Synchronization of transform over network. More…

class SyncTransform:
    public MonoBehaviour,
    public MAGES::Networking::IMAGESObjectSynchronization
{
public:
    // properties

    float RotationThreshold;
    float MovementThreshold;
    MAGESSyncTransform SyncTransformMode;
    MAGESSyncChildren SyncChildrenMode;

    // methods

    virtual void Initialise();
    void AddSynchronizedTransform(Transform t);
    void ClearSynchronizedTransforms();
};

Inherited Members

public:
    // properties

    float MovementThreshold;
    float RotationThreshold;
    MAGESSyncTransform SyncTransformMode;
    MAGESSyncChildren SyncChildrenMode;

Detailed Documentation

Synchronization of transform over network.

Properties

float RotationThreshold

Gets or sets threshold for rotation.

float MovementThreshold

Gets or sets threshold for movement.

MAGESSyncTransform SyncTransformMode

Gets or sets current synchronization mode for the objects transform.

MAGESSyncChildren SyncChildrenMode

Gets or sets current synchronization for the objects children.

Methods

virtual void Initialise()

Initialises the component.

void AddSynchronizedTransform(Transform t)

Add a transform that will be synchronized.

Parameters:

t

The new transform that will be added.

void ClearSynchronizedTransforms()

Clears all transforms that are synchronized from this object.

This function needs to be called in all connected users, it is not synchronized.