Hello,
From
for node in ghost.getOverlappingNodes():
I got nodes (BulletRigidBodyNode in my case).
I want to grab position from this node, but sadly I can’t simply do a getPos on it. How can I extract this information?
Hello,
From
for node in ghost.getOverlappingNodes():
I got nodes (BulletRigidBodyNode in my case).
I want to grab position from this node, but sadly I can’t simply do a getPos on it. How can I extract this information?
getPos() is a method on NodePath, not on PandaNode. When you have a PandaNode, you can wrap it in a NodePath and call getPos() on that:
print NodePath(node).getPos()
David
Great thank you!