fix: ping边框高度改用transform.position.y匹配模型实际Y位置
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user