reparentTo vs attachNewNode
What is the difference between the two?
reparentTo vs attachNewNode
What is the difference between the two?
attachNewNode takes a PandaNode (and returns a NodePath pointing to the node), while reparentTo works with NodePaths. That’s the only difference, I think.
Thank you!
Technically:
np2 = np1.attachNewNode('abc')
is exactly equivalent to:
np2 = NodePath('abc')
np2.reparentTo(np1)
David