I was reading this post, https://discourse.panda3d.org/viewtopic.php?t=3292 (which has to do with attaching spotlight to a node but its not that important), and it got me thinking:
What is the difference between attachNewNode() and reparentTo()?
Can anybody explain this to me?
With reparenTo, you already have a nodepath that is somewhere in the scene graph. You simply change its parent.
With attachNewNode, you usually don’t have a NodePath yet, but a normal PandaNode. (Or LODNode, or anyotherNode, etc.). You place it using this command into the scene graph and the function returns the new NodePath.
Correct me if I’m wrong.
So basically they have the same final effect?