feat : Vector3 int -> float, 이동시 int 캐스팅 제거, 프로그램 실행시 setting.json 추가
This commit is contained in:
@@ -144,15 +144,15 @@ public class StressTestClient
|
||||
posX = nextX;
|
||||
posZ = nextZ;
|
||||
distance = hitWall ? 0f : distance - step;
|
||||
position.X = (int)MathF.Round(posX);
|
||||
position.Z = (int)MathF.Round(posZ);
|
||||
position.X = posX;
|
||||
position.Z = posZ;
|
||||
|
||||
// 전송
|
||||
TransformPlayerPacket pkt = new TransformPlayerPacket
|
||||
{
|
||||
PlayerId = clientId,
|
||||
RotY = rotY,
|
||||
Position = new Packet.Position { X = position.X, Y = 0, Z = position.Z }
|
||||
Position = new Packet.Position { X = position.X, Y = -0.5f, Z = position.Z }
|
||||
};
|
||||
byte[] data = PacketSerializer.Serialize((ushort)PacketCode.TRANSFORM_PLAYER, pkt);
|
||||
writer.Put(data);
|
||||
|
||||
Reference in New Issue
Block a user