interface ITransformManager (Niantic.Experimental.ARDK.SharedAR.Transform.ITransformManager)
Overview
interface ITransformManager: IDisposable { // events event PeerPoseReceived(); event TransformAdded(); event TransformDeleted(); event TransformUpdated(); // methods bool AddTransform(string id, Matrix4x4 transform); bool DeleteTransform(string id); void DisablePoseBroadcasting(); void EnabledPoseBroadcasting(); Matrix4x4 GetTransform(string id); ReadOnlyCollection<string> GetTransformIds(); void SetPoseBroadcasting(bool value); void TogglePoseBroadcasting(); void Update(); bool UpdateTransform(string id, Matrix4x4 transform); };
Detailed Documentation
注釈
This is an experimental feature. Experimental features should not be used in production products as they are subject to breaking changes, not officially supported, and may be deprecated without notice
Events
event TransformAdded()
Fired upon receiving an updated transform from another peer This is always in local space
event TransformDeleted()
Fired upon another peer deleting a transform
event TransformUpdated()
Fired upon receiving an updated transform from another peer This is always in local space
Methods
bool AddTransform(string id, Matrix4x4 transform)
Set the transform of a specific ID. In this implementation, there is no owner gating. Other devices will get an event TransformUpdated upon receiving the update
Parameters:
id |
ID of the transform you are setting |
transform |
Transform in local space |
Returns:
True if set (always)
bool DeleteTransform(string id)
Delete a specified ID and its transform for all devices. In this implementation, there is no owner gating. Other devices will get an event TransformDeleted upon receiving the update
Parameters:
id |
Returns:
Matrix4x4 GetTransform(string id)
Get the last transform of a specific ID. This will always be in local space
Parameters:
id |
Returns:
ReadOnlyCollection<string> GetTransformIds()
Get a list of all known transform IDs
Returns:
bool UpdateTransform(string id, Matrix4x4 transform)
Update a specified ID and its transform for all devices. In this implementation, there is no owner gating. Other devices will get an event TransformUpdated upon receiving the update
Parameters:
id |
ID of the transform you are setting |
transform |
Transform in local space |
Returns: