Exemple #1
0
    public Vector2 getPosAtTime(float time)
    {
        float angle = getAngleAtTime(time);

        Vector2 pos = ParentBody.position;

        if (ParentOrbit != null)
        {
            pos = ParentOrbit.getPosAtTime(time);
        }

        return(pos + getPosAtAngle(angle));
    }
Exemple #2
0
 public override Vector2 getPosInSeconds(float secondsFromNow)
 {
     return(planet.getPosAtTime(Time.time + secondsFromNow));
 }