Aetheria/Assets/Plugins/MIConvexHull/Vertex3.cs
Reinier Vens dbc522a224 Weapos Rejiggered
Modified weapon scripts to eliminate specialized projectile behavior - allows charged weapons to have projectiles and modify weapon stats when charged
Added machine gun weapon & VFX
Moved third party code to Plugins folder to improve compile times
2021-01-31 03:52:32 +00:00

22 lines
507 B
C#

using UnityEngine;
using System.Collections;
using MIConvexHull;
public class Vertex3 : IVertex
{
public double[] Position { get; set; }
public double x { get { return Position[0]; } }
public double y { get { return Position[1]; } }
public double z { get { return Position[2]; } }
public Vertex3(double x, double y, double z)
{
Position = new double[] { x, y, z };
}
public Vector3 ToVector3() {
return new Vector3((float) Position[0], (float) Position[1], (float) Position[2]);
}
}