From 8b75ff73355a838278c2a4bd87bcc6002223fc11 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 27 Feb 2021 03:18:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E5=87=8F=E5=BC=B1=E8=99=9A=E6=8B=9F?= =?UTF-8?q?=E6=8C=89=E9=94=AE=E7=A2=B0=E6=92=9E=E5=8A=9B=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/gametoolfunc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/gametoolfunc.lua b/parts/gametoolfunc.lua index f3ee21e9..a8df27fe 100644 --- a/parts/gametoolfunc.lua +++ b/parts/gametoolfunc.lua @@ -443,8 +443,8 @@ function pressVirtualkey(t,x,y) local b=VK[i] local d=B.r+b.r-((B.x-b.x)^2+(B.y-b.y)^2)^.5--Hit depth(Neg means distance) if d>0 then - b.x=b.x+(b.x-B.x)*d*b.r*6.2e-5 - b.y=b.y+(b.y-B.y)*d*b.r*6.2e-5 + b.x=b.x+(b.x-B.x)*d*b.r*2.6e-5 + b.y=b.y+(b.y-B.y)*d*b.r*2.6e-5 end end end