Skip to content

Commit 23851fc

Browse files
committed
统一向服务端同步方向的顺序是roll、pitch、yaw
1 parent f02e3f1 commit 23851fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

KBEngine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,9 +1817,9 @@ public void updatePlayerToServer()
18171817
bundle.writeFloat(position.y);
18181818
bundle.writeFloat(position.z);
18191819

1820-
bundle.writeFloat((float)((double)direction.z / 360 * 6.283185307179586));
1821-
bundle.writeFloat((float)((double)direction.y / 360 * 6.283185307179586));
18221820
bundle.writeFloat((float)((double)direction.x / 360 * 6.283185307179586));
1821+
bundle.writeFloat((float)((double)direction.y / 360 * 6.283185307179586));
1822+
bundle.writeFloat((float)((double)direction.z / 360 * 6.283185307179586));
18231823
bundle.writeUint8((Byte)(playerEntity.isOnGound == true ? 1 : 0));
18241824
bundle.writeUint32(spaceID);
18251825
bundle.send(_networkInterface);

0 commit comments

Comments
 (0)