diff --git a/NewHorizons/Utility/DebugTools/DebugRaycastData.cs b/NewHorizons/Utility/DebugTools/DebugRaycastData.cs index f1ab36e9..069ba13c 100644 --- a/NewHorizons/Utility/DebugTools/DebugRaycastData.cs +++ b/NewHorizons/Utility/DebugTools/DebugRaycastData.cs @@ -2,7 +2,7 @@ using UnityEngine; namespace NewHorizons.Utility.DebugTools { - struct DebugRaycastData + public struct DebugRaycastData { public bool hit; public Vector3 pos; @@ -16,7 +16,7 @@ namespace NewHorizons.Utility.DebugTools public GameObject hitObject; } - struct DebugRaycastPlane + public struct DebugRaycastPlane { public Vector3 origin; public Vector3 normal; diff --git a/NewHorizons/Utility/DebugTools/DebugRaycaster.cs b/NewHorizons/Utility/DebugTools/DebugRaycaster.cs index dd6cd9f4..58ab83dd 100644 --- a/NewHorizons/Utility/DebugTools/DebugRaycaster.cs +++ b/NewHorizons/Utility/DebugTools/DebugRaycaster.cs @@ -112,7 +112,7 @@ namespace NewHorizons.Utility.DebugTools NHLogger.Log($"Raycast hit\n\n\"position\": {posText},\n\"rotation\": {rotText},\n\"normal\": {normText}\n\non collider [{data.colliderPath}] " + (data.bodyPath != null ? $"at rigidbody [{data.bodyPath}]" : "not attached to a rigidbody")); } - internal DebugRaycastData Raycast() + public DebugRaycastData Raycast() { var data = new DebugRaycastData();