This has nothing to do with your class extending Object3D. That's fine. The getObject()-method in World needs the ID of the object, not the position. You can obtain this ID either from the Object3D itself or you use the int-value returned by World.addObject().