This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System; | |
| public class InvKinematics : MonoBehaviour | |
| { | |
| public double about_x; // x to rotate about | |
| public double about_y; // y to rotate about | |
| public double x_init; // initial x | |
| public double y_init; // initial y | |
| public double x_prime; // final x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public class Orbiter : MonoBehaviour | |
| { | |
| public GameObject Sun; | |
| public GameObject Earth; | |
| public GameObject Moon; | |
| private Vector3 sunPos; | |
| private Vector3 earthPos; |