i’ve been trying to deconstruct the asteroids demo and having a terrible time working backwards to the panda documentation to figure out how things were done. Let me put down a few questions, and then maybe someone can suggest a strategy.
1 SCREEN_X and SCREEN_Y are exactly that but they are not derived from panda calls and they are not used to set anything. How would i know what these values would be by default ? (the answer is 20 and 15)
2 the documentation on models says that you should do “reparentto”. but the list that is created is simply a list and none of the objects are set using reparentto, so clearly it’s optional. However the documentation says that objects need to be placed in the screen graph.
3 the position of the model object can be set using setPos. However i can’t find the API for a model object in the api documentation. is it in there ? is there a good way to find such methods ? the find box doesn’t particularly qualify as a good way, putting setPos in the find box returns a LOT of hits.
This is just an example of the kind of thing i’m getting stuck on. I’m really hoping to find a way to teach myself, so hoping for some suggestions on how best to go about doing that.
Thank you for your patience