Readd missing import files

This commit is contained in:
Lucien
2026-05-07 10:14:44 +02:00
parent ecb44e63d8
commit cd608d5796
810 changed files with 263144 additions and 1 deletions
@@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace Wing.Gizmos
{
public class SnapBase : ISnap
{
protected bool mEnable = false;
protected float mPrecision = 0;
protected float mTolerance = 0;
public bool Enable
{
get
{
return mEnable;
}
set
{
mEnable = value;
}
}
public float Precision
{
get
{
return mPrecision;
}
set
{
mPrecision = value;
CalcTolerance();
}
}
protected virtual void CalcTolerance()
{
mTolerance = Precision * 0.2f;
}
public virtual bool Snap(Vector3 inVal, ref Vector3 outVal, bool force = false)
{
outVal = Vector3.zero;
return false;
}
}
}