i have this project where i have to figure out how to orbit a space shuttle around the earth. i already have the textured earth setup. do you have any idea of library that can help me do the work??
im trying to use radiobuttons in my project but im having this weird error saying " constructor sketch (int ,int,---------) refers to the missing type radio.
radioButton[] button = new radioButton[2];
void setup()
{
size(300,300);
smooth();
button[0] = new radioButton(33,50,30,color(255),color(0),0,button); button[1] = new radioButton(66,50,30,color(255),color(0),1,button);
int x,y; // x and y coordinates of the rect
int size ; // dimension of outer circle
int dotsize; // dimension of inner circle
int me; // ID number for this radio object
Radio[] others; // array of all others radio objects
boolean checked = false; // true when the button is selected
color basecolor,dotcolor;
radioButton( int xp,int yp,int s,color b,color d,int m,radio[] o)
{
x = xp;
y = yp;
size = s;
basecolor = b;
dotcolor = d;
dotsize = size - size/3;
others = o;
me = m;
}
// updates the boolean value press, returns true or false
/* Function that declares and assigns new object*/
public void AssignPlanetObjects()
{
Mercury = new orbitPlanets(60.0,30.0,0.0);
Venus = new orbitPlanets(64.0,50.0,177.0);
Earth = new orbitPlanets(70.0,56.0,23.5);
Mars = new orbitPlanets(73.0,46.0,25.0);
Jupiter = new orbitPlanets(86.0,150.0,3.0);
Saturn = new orbitPlanets(96.0,130.0,27.0);
Uranus = new orbitPlanets(160.0,122.0,98.0);
Neptune = new orbitPlanets(230.0,198.0,30.0);
Pluto = new orbitPlanets(280.0,20.0,118.0);