Sep-05-2018, 06:25 PM
(Sep-05-2018, 06:13 PM)Gribouillis Wrote:This is just an excerpt of my code. There are the variables and functions my solar system is working. But not with the OOP version. And I figured out that when it has to be in this part of the code. I thought I did something wrong with the OOP version. Because the planets are not loaded so I dont see them visually in the simulator, but in the normal version I see them. (And I know that the sun isn't a planet. lol)(Sep-05-2018, 06:07 PM)Caturix99 Wrote: Now I have the problem that the plantes of my solar system are not loaded anymore.I don't understand this. Where should the planets be loaded? What your code does is creating 10 Planet instances and append them to the 'planets' list. Do you expect anything else? By the way, the sun is not a planet!