Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ public void InitNetworkPositionAndRotationY(Vector3 initPosition, float initRota
/// <summary>
/// The networked position of this Character. This reflects the authoritative position on the server.
/// </summary>
public NetworkVariableVector3 NetworkPosition { get; } = new NetworkVariableVector3();
public NetworkVariableVector3 NetworkPosition { get; } = new NetworkVariableVector3(
new NetworkVariableSettings() { SendNetworkChannel = MLAPI.Transports.NetworkChannel.PositionUpdate });

/// <summary>
/// The networked rotation of this Character. This reflects the authoritative rotation on the server.
/// </summary>
public NetworkVariableFloat NetworkRotationY { get; } = new NetworkVariableFloat();
public NetworkVariableFloat NetworkRotationY { get; } = new NetworkVariableFloat(
new NetworkVariableSettings() { SendNetworkChannel = MLAPI.Transports.NetworkChannel.PositionUpdate });

/// <summary>
/// The speed that the character is currently allowed to move, according to the server.
Expand Down