NodePath strangeness

I have a NodePath (planet) reparented to a rotating NodePath (orbit). I can lookAt(planet) from other points in the scene correctly but planet.getPos() returns the value that was set before the node was reparented. Is this the expected behaviour?

I need planet.getPos() to return the position relative to render so I can use it as a targeting position.

Is there a transformation I need to perform to achieve this?

the manual already covers that :

Hmmm… I didnt see it in the manual. Guess I didnt look hard enough :blush: .

The code snippet works and is an elegant solution to the problem. Thanks!