|
 |
High!
I'm trying to set up an array for the position vectors of seven planets,
but whenever I start the script, I get the error message
File: E:\Povscn\system.pov Line: 20
#while (a<7)
PlanetPoss[a] <----ERROR
Parse Error: Expected 'object or directive', float function 'float
identifier' found instead
Here is the code:
#declare Planets=array[3][7]
{
{ 3750000, 19400000, 40100000, 104720000, 201000000, 338000000,
949000000 }
{ 1289, 2560, 12784, 63879, 34974, 51075, 10451 }
{ 12, 90, 104, 56, 32, 253, 4 }
}
#declare PlanetPoss=array[7] { 0, 0, 0, 0, 0, 0, 0 }
#declare a=0;
#while (a<7)
PlanetPoss[a]=StarPos+Planets[0][a]*<sin(Planets[2][a]*(pi/180)), 0,
cos(Planets[2][a]*(pi/180))>
#declare a=a+1;
#end
(astronomers: please forgive me that I, for the time being, assumed
circular orbits!)
See you in Khyberspace!
Yadgar
Post a reply to this message
|
 |