mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
added class for an on screen arrow to point to whatever transform you want
This commit is contained in:
parent
e049df7b65
commit
18e77c4c7a
37
NewHorizons/Utility/DebugUtilities/DebugArrow.cs
Normal file
37
NewHorizons/Utility/DebugUtilities/DebugArrow.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NewHorizons.Utility.DebugUtilities
|
||||
{
|
||||
class DebugArrow : MonoBehaviour
|
||||
{
|
||||
public Transform target;
|
||||
|
||||
void Start()
|
||||
{
|
||||
// make the mesh in code so we don't need an assetbundle or anything
|
||||
/* E
|
||||
* (0, .5)
|
||||
* /\
|
||||
* / \
|
||||
* C (-.5,0) || (.5,0) D
|
||||
* ||
|
||||
* (-.1,-.5) (.1,-.5)
|
||||
* A B
|
||||
*/
|
||||
|
||||
Vector3[] topVerts = new Vector3[]
|
||||
{
|
||||
new Vector3(-0.1f, -0.5f, 0.1f), // A
|
||||
new Vector3( 0.1f, -0.5f, 0.1f), // B
|
||||
new Vector3(-0.5f, 0f, 0.1f), // C
|
||||
new Vector3( 0.5f, 0f, 0.1f), // D
|
||||
new Vector3( 0f, 0.5f, 0.1f), // E
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user