Aetheria/Assets/Scripts/ServerShared/OrbitInstance.cs
hyperion51 0b46d5ee39 Database Support
Refactored almost everything, but most importantly we now integrate with RethinkDB for game data.
2020-03-22 19:05:26 +00:00

20 lines
404 B
C#

using System.Collections;
using System.Collections.Generic;
using Unity.Mathematics;
using static Unity.Mathematics.math;
public class OrbitInstance
{
private OrbitData _data;
public OrbitInstance(OrbitData data)
{
_data = data;
}
public static float2 Evaluate(float phase)
{
phase *= (PI * 2);
return new float2(sin(phase), cos(phase));
}
}