Files
ChunilENG/Assets/Plugins/XRLib/GenericController/MaxRangeLimitter.cs
정영민 2dd5d814a7 update
2025-02-20 09:59:37 +09:00

29 lines
561 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace WI
{
public class MaxRangeLimitter
{
public Collider maxRange;
public void SetRange(Collider maxrRangeCollider)
{
maxRange = maxrRangeCollider;
}
public bool MoveRangeLimit(Vector3 pos)
{
if (maxRange == null)
return false;
if (maxRange.bounds.Contains(pos))
{
return true;
}
return false;
}
}
}