Struct NetworkDeltaPosition
Used to synchromnize delta position when half float precision is enabled
Implements
Inherited Members
Namespace: Unity.Netcode.Components
Assembly: solution.dll
Syntax
public struct NetworkDeltaPosition : INetworkSerializable
Constructors
Name | Description |
---|---|
Network |
Constructor |
Network |
Constructor |
Network |
Constructor that defaults to all axis being synchronized. |
Network |
Constructor |
Fields
Name | Description |
---|---|
Half |
The HalfVector3 used to synchronize the delta in position |
Methods
Name | Description |
---|---|
Get |
The half float vector3 version of the current delta position. |
Get |
Returns the current base position (excluding the delta position offset). |
Get |
The full precision current delta position. |
Get |
Returns the full position which includes the delta offset position. |
Network |
The serialization implementation of INetwork |
To |
Gets the full precision value of Vector3 position while also potentially updating the current base position. |
Update |
Updates the position delta based off of the current base position. |