Planet mercury, mercury2, earth;
Star sun;
HashMap<Object, Object> solvedCollisions = new HashMap<Object, Object>(4);
public void init() throws IOException {
mercury = new Planet(2000, 5000);
mercury.setPosition(new Vector(-20000, 0, -40000));
//mercury.setRotation(new Vector(0, 0.02f, 0));
Texture texMercury = TextureLoader.getTexture("JPG",
ResourceLoader.getResourceAsStream("res/mercury.jpg"));
mercury.setTexture(texMercury);
mercury2 = new Planet(2000, 5000);
mercury2.setPosition(new Vector(0, -5000, -40000));
//mercury2.setRotation(new Vector(0, 0.01f, 0));
mercury2.setTexture(texMercury);
earth = new Planet(3000, 5000);
earth.setPosition(new Vector(10000, 0, -40000));
//earth.setRotation(new Vector(0, -0.006f, 0));
Texture texEarth = TextureLoader.getTexture("JPG",
ResourceLoader.getResourceAsStream("res/earth.jpg"));
earth.setTexture(texEarth);