choke: nothing

master
tiendat3699 2024-04-19 18:20:17 +07:00
parent 8eb3791f54
commit 587b2ab838
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ namespace GadGame.MiniGame
{ {
//640x480; //640x480;
var inputData = UdpSocket.Instance.DataReceived.PosPoint; var inputData = UdpSocket.Instance.DataReceived.PosPoint;
var inputNormalize = new Vector2((inputData.x - 213.33f)/ 213.33f, inputData.y / 480); // var inputNormalize = new Vector2((inputData.x - 213.33f)/ 213.33f, inputData.y / 480);
var inputNormalize = new Vector2(inputData.x/ 200, inputData.y / 480);
var input = new Vector2 var input = new Vector2
{ {
x = Mathf.Lerp(0, _canvas.pixelRect.width, inputNormalize.x), x = Mathf.Lerp(0, _canvas.pixelRect.width, inputNormalize.x),