From 9da2f19b2e93cbcb9570f952754b2fcecaa09a97 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Sun, 23 Feb 2025 01:40:23 -0500 Subject: [PATCH] publicize raycast --- NewHorizons/Utility/DebugTools/DebugRaycastData.cs | 4 ++-- NewHorizons/Utility/DebugTools/DebugRaycaster.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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();