mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Renamed to new horizons, updated to current versions of OWML and Outer Wilds, added BlackHoleBuilder, LavaBuilder, RingBuilder. Added support to modify existing planets with configs.
29 lines
593 B
C#
29 lines
593 B
C#
using UnityEngine;
|
|
|
|
namespace NewHorizons.Utility
|
|
{
|
|
public class MVector3
|
|
{
|
|
public MVector3(float x, float y, float z)
|
|
{
|
|
X = x;
|
|
Y = y;
|
|
Z = z;
|
|
}
|
|
|
|
public float X { get; }
|
|
public float Y { get; }
|
|
public float Z { get; }
|
|
|
|
public static implicit operator MVector3(Vector3 vec)
|
|
{
|
|
return new MVector3(vec.x, vec.y, vec.z);
|
|
}
|
|
|
|
public static implicit operator Vector3(MVector3 vec)
|
|
{
|
|
return new Vector3(vec.X, vec.Y, vec.Z);
|
|
}
|
|
}
|
|
}
|