Get model absolute position

I have a model with reparentTo() set to another NodePath and not base.render. How do I get the absolute position of the model instead of the relative position to the NodePath that getPos() gives you?

I know i can do wrtreparentTo() and then do the getPos() but isn’t there a direct way? I’ve read that wrtreparentTo() should be used often because it messes with the actual position of the object over time.

Try:

model.getPos(base.render)
1 Like