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 |
|---|---|
| NetworkDeltaPosition(float, float, float, int) | Constructor |
| NetworkDeltaPosition(float, float, float, int, bool3) | Constructor |
| NetworkDeltaPosition(Vector3, int) | Constructor that defaults to all axis being synchronized. |
| NetworkDeltaPosition(Vector3, int, bool3) | Constructor |
Fields
| Name | Description |
|---|---|
| HalfVector3 | The HalfVector3 used to synchronize the delta in position |
Methods
| Name | Description |
|---|---|
| GetConvertedDelta() | The half float vector3 version of the current delta position. |
| GetCurrentBasePosition() | Returns the current base position (excluding the delta position offset). |
| GetDeltaPosition() | The full precision current delta position. |
| GetFullPosition() | Returns the full position which includes the delta offset position. |
| NetworkSerialize<T>(BufferSerializer<T>) | The serialization implementation of INetworkSerializable |
| ToVector3(int) | Gets the full precision value of Vector3 position while also potentially updating the current base position. |
| UpdateFrom(ref Vector3, int) | Updates the position delta based off of the current base position. |