Constructor NetworkDeltaPosition
NetworkDeltaPosition(Vector3, int, bool3)
Constructor
Declaration
public NetworkDeltaPosition(Vector3 vector3, int networkTick, bool3 axisToSynchronize)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector3 | The initial axial values (converted to half floats) when instantiated. |
int | networkTick | Set the network tick value to the current network tick when instantiating. |
bool3 | axisToSynchronize | The axis to be synchronized. |
NetworkDeltaPosition(Vector3, int)
Constructor that defaults to all axis being synchronized.
Declaration
public NetworkDeltaPosition(Vector3 vector3, int networkTick)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector3 | The initial axial values (converted to half floats) when instantiated. |
int | networkTick | Set the network tick value to the current network tick when instantiating. |
NetworkDeltaPosition(float, float, float, int, bool3)
Constructor
Declaration
public NetworkDeltaPosition(float x, float y, float z, int networkTick, bool3 axisToSynchronize)
Parameters
Type | Name | Description |
---|---|---|
float | x | The initial x axis (converted to half float) value when instantiated. |
float | y | The initial y axis (converted to half float) value when instantiated. |
float | z | The initial z axis (converted to half float) value when instantiated. |
int | networkTick | Set the network tick value to the current network tick when instantiating. |
bool3 | axisToSynchronize | The axis to be synchronized. |
NetworkDeltaPosition(float, float, float, int)
Constructor
Declaration
public NetworkDeltaPosition(float x, float y, float z, int networkTick)
Parameters
Type | Name | Description |
---|---|---|
float | x | The initial x axis (converted to half float) value when instantiated. |
float | y | The initial y axis (converted to half float) value when instantiated. |
float | z | The initial z axis (converted to half float) value when instantiated. |
int | networkTick | Set the network tick value to the current network tick when instantiating. |