mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
publicize raycast
This commit is contained in:
parent
d15980b0fd
commit
9da2f19b2e
@ -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;
|
||||||
|
|||||||
@ -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();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user