I could have the wrong logcial understanding of setPos, but…
When you have a Node (object) and you call self.Object.setPos(0,0,0)…
Is that setting position or origin? The reason I ask this now is because, up until now I have been using setPos to set the position of nodes in the world and it has worked correctly.
But now lets add some children to that Node making it a parent Node. I now call self.Object.setPos(0,0,0) and instead of setting the Parent Object’s position I have in fact moved a node’s origin!! Which one? Parent or child? Good question. From what I can tell…looks like my child node’s origin got moved.
I always thought calling something like self.Object.setPos(render, 0, 20, 0) would set the origin; and setting the origin of children nodes as…self.ChildObj.setPos(self.Object, 0, -30, 0).
I was calling self.Object.setPos(0,0,0) mostly, that’s why I didn’t notice an origin change and the object was setting to this position in the level (and childred), but when I tried self.Object.setPos(0, 3000, 0) I got the nasty surprise of origin change.
Since P3D has a scene grapch concept, you would think moving the parent Node would in fact move any children nodes just the same…but it was clear to me…something was offset.
Let me add, I never had an offset like that while calling setPos on a Node that was not a parent.
Clearly…I have moved off the logical path of understanding the setPos.
So, someone…if you don’t mind, set me back on the straight path.
Got my config.exe file all figured out. I just need to give it a GUI now. So, when a player starts the game, they will set the game’s configuration first, then play. You see that kind of setup more and more now. This is good for P3D because changing resolution during gameplay will show your desktop and knock you out of full screen mode; I have never been able to get back into true full screen after that. Setting resolution before hand ends that issue.
The Vamprye Story configs the game from within then pops up a message saying a restart is needed. Why make the player exit and restart the game again? When you could have allowed them to configure the game from the start…