publicize raycast

This commit is contained in:
Noah Pilarski 2025-02-23 01:40:23 -05:00
parent d15980b0fd
commit 9da2f19b2e
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ using UnityEngine;
namespace NewHorizons.Utility.DebugTools namespace NewHorizons.Utility.DebugTools
{ {
struct DebugRaycastData public struct DebugRaycastData
{ {
public bool hit; public bool hit;
public Vector3 pos; public Vector3 pos;
@ -16,7 +16,7 @@ namespace NewHorizons.Utility.DebugTools
public GameObject hitObject; public GameObject hitObject;
} }
struct DebugRaycastPlane public struct DebugRaycastPlane
{ {
public Vector3 origin; public Vector3 origin;
public Vector3 normal; public Vector3 normal;

View File

@ -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}] " + 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")); (data.bodyPath != null ? $"at rigidbody [{data.bodyPath}]" : "not attached to a rigidbody"));
} }
internal DebugRaycastData Raycast() public DebugRaycastData Raycast()
{ {
var data = new DebugRaycastData(); var data = new DebugRaycastData();