Initial commit

This commit is contained in:
Josh4359
2023-09-16 18:53:33 -07:00
commit 23aa1fb180
35 changed files with 2160 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using UnityEngine;
public class SplineNearestPointDebug : MonoBehaviour
{
[SerializeField] SplinePlus splinePlus;
[SerializeField] float cubeSize;
void OnDrawGizmos()
{
if (!splinePlus) return;
splinePlus.GetNearestPoint(transform.position, out Vector3 position, out _);
Gizmos.DrawCube(position, Vector3.one * cubeSize);
}
}