Description
The Proxy
property of the GameTransform
class provides access to the TransformProxy
associated with the game object. This proxy is used to manage and manipulate the transform properties of the game object in a more controlled manner, allowing for operations such as interpolation and synchronization across networked clients.
Usage
Use the Proxy
property to access the TransformProxy
for advanced manipulation of the game object's transform. This can be particularly useful when you need to perform operations that require precise control over the transform, such as smooth transitions or network synchronization.
Example
// Example of accessing the Proxy property
GameTransform gameTransform = new GameTransform();
TransformProxy proxy = gameTransform.Proxy;
// Use the proxy to perform operations
proxy.SetPosition(new Vector3(10, 0, 5));
proxy.SetRotation(Rotation.FromYaw(45));