Sun (0)
Mercury (0.579)
Venus (1.082)
Earth (1.496)
Mars (2.279)
Jupiter (7.786)
Saturn (14.335)
Uranus (28.725)
Neptune (44.951)
Moon (0.0)
Moon2 (0.0)
I need to create a function, so I was trying to define the above as double range. And then put a separate function like below
void rangefromSun (){
range*scaleDistance
}
I then could easily get the distance in the code by using
glTranslated(rangefromsun, 0.0, 4.9);
Any help of how to do this properly?
Thanks

New Topic/Question
Reply




MultiQuote



|