rigid body combiner and TextNode

Hello. My TextNodes aren’t appearing under my RigidBodyCombiner.

from direct.showbase.ShowBase import ShowBase
import direct.directbase.DirectStart
from panda3d.core import *
from direct.gui.DirectGui import *
import os.path

rbc= RigidBodyCombiner( 'rbc' )
rbcpath= render.attachNewNode( rbc )
textnode= TextNode( 'tn name' )
textnodepath= rbcpath.attachNewNode( textnode )
textnodepath.setPos( 0, 5, 0 )
textnode.setTextColor( 0, 0, 0, 1 )
textnode.setText( 'some text' )
rbc.collect( )

run( )

However, the text correctly displays when I change the ‘rbcpath.attachNewNode’ to ‘render’.

TextNode is not supported under RigidBodyCombiner. However, you can use TextNode.generate() to return an ordinary GeomNode, which you can then place in the scene.

David