Inherit from CollisionNode

As David already said, you should use this:

PT(MyObject) obj = new MyObject("hi");

I’m not sure if that is the problem here though, because you haven’t elaborated on “doesn’t work”. What doesn’t work? Does it crash? Does it show an error?