BITFALL/Assets/Polaris - Low Poly Ecosystem/Polaris - Low Poly Terrain .../Runtime/Scripts/SplineTool/GSplineAnchor.cs

58 lines
1.1 KiB
C#
Raw Normal View History

2023-12-30 17:37:48 +08:00
using UnityEngine;
namespace Pinwheel.Griffin.SplineTool
{
[System.Serializable]
public class GSplineAnchor
{
[SerializeField]
private Vector3 position;
public Vector3 Position
{
get
{
return position;
}
set
{
position = value;
}
}
[SerializeField]
private Quaternion rotation;
public Quaternion Rotation
{
get
{
return rotation;
}
set
{
rotation = value;
}
}
[SerializeField]
private Vector3 scale;
public Vector3 Scale
{
get
{
return scale;
}
set
{
scale = value;
}
}
public GSplineAnchor(Vector3 pos)
{
position = pos;
rotation = Quaternion.identity;
scale = Vector3.one;
}
}
}