Use depth-scaled sphere silhouettes for native rapid-count view checks

This commit is contained in:
NINI
2026-10-06 23:56:16 +09:00
parent 35e063b17b
commit d14a49d629
2 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ function BallPoint($Board,[string]$Id) {
$scale=($height/2)/([Math]::Tan(31*[Math]::PI/180)*$local.Z)
return @([int][Math]::Round(($width/2)+$local.X*$scale),[int][Math]::Round(($height/2)-$local.Y*$scale))
}
function WorldSafe($Point) { return $Point[0]-ge530-and$Point[0]-le1900-and$Point[1]-ge280-and$Point[1]-le750 }
function WorldSafe($Point) { return $Point[0]-ge530-and$Point[0]-le1850-and$Point[1]-ge280-and$Point[1]-le750 }
function TapBall([string]$Name,$Board,[string]$Id) {
$point=BallPoint $Board $Id
if(!(WorldSafe $point)){throw "Refused unsafe native ball tap $Id at $($point-join',')"}