BITFALL/Assets/GSpawn - Level Designer/Scripts/Math/Cylinder.cs

19 lines
690 B
C#
Raw Normal View History

2024-01-27 04:09:57 +08:00
#if UNITY_EDITOR
using UnityEngine;
namespace GSpawn
{
public struct Cylinder
{
private Vector3 _basePoint;
private Vector3 _heightAxis;
private float _height;
private float _radius;
public Vector3 basePoint { get { return _basePoint; } set { _basePoint = value; } }
public Vector3 heightAxis { get { return _heightAxis; } set { _heightAxis = value.normalized; } }
public float height { get { return _height; } set { _height = Mathf.Max(0.0f, value); } }
public float radius { get { return _radius; } set { _radius = Mathf.Max(0.0f, value); } }
}
}
#endif