void TestPointsIsInMeshCollider() { for (int i = 0; i < localPoints.Count; i++) { var pos = transform.TransformPoint(localPoints[i]); if (Physics.OverlapSphere(pos, 0.01f).Length > 0) { Debug.Log("测试点"); gm.AddCube(pos); } } }