Database Support
Refactored almost everything, but most importantly we now integrate with RethinkDB for game data.
This commit is contained in:
parent
5ffeb55214
commit
0b46d5ee39
839 changed files with 77349 additions and 112660 deletions
|
|
@ -52,7 +52,7 @@ public class Orbit : MonoBehaviour
|
|||
|
||||
// var p = _phase + time / (Period / (Mathf.PI * 2));
|
||||
|
||||
var pos = Evaluate(Phase + time / Period);
|
||||
var pos = OrbitInstance.Evaluate(Phase + time / Period);
|
||||
|
||||
transform.position = new Vector3(Target.position.x + Distance * pos.x,
|
||||
transform.position.y,
|
||||
|
|
@ -67,10 +67,4 @@ public class Orbit : MonoBehaviour
|
|||
{
|
||||
Target = parent;
|
||||
}
|
||||
|
||||
public static float2 Evaluate(float phase)
|
||||
{
|
||||
phase *= (Mathf.PI * 2);
|
||||
return new float2(sin(phase), cos(phase));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue