Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //float d = (semiMajor * (1.0f - Mathf.Pow(eccentricity, 2))) / (1.0f + eccentricity * Mathf.Cos(s - omega));
- //Vector2 rot = new Vector2(Mathf.Cos(s), Mathf.Sin(s)) * d;
- //testPosition.position = gravPlanet.position + rot + (new Vector2(transform.position.x, transform.position.y) - CentreOfMass);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement