fix: ping边框高度改用transform.position.y匹配模型实际Y位置

This commit is contained in:
yangbear
2026-07-03 14:15:11 +08:00
parent c8f23df5a4
commit dd3eb605b5
@@ -56,7 +56,7 @@ public class PingClickHandler : MonoBehaviour
Bounds b;
if (_meshRenderer != null) b = _meshRenderer.bounds;
else b = new Bounds(transform.position, new Vector3(0.3f, 0.01f, 0.3f));
float y = b.center.y + 0.05f;
float y = transform.position.y + 0.1f;
Vector3 p0 = new Vector3(b.min.x, y, b.min.z);
Vector3 p1 = new Vector3(b.min.x, y, b.max.z);
Vector3 p2 = new Vector3(b.max.x, y, b.max.z);