However when I do this, obj ends up parented to obj2, but it also ends up in completely the wrong place, similar to what sometimes happens when I unparent things in normal Blender, any help on fixing this?
I started learning Blender game engine 10 days ago (but I am a programmer already) so I don’t know if it’s compatible with Blender 2.49. I hope that helps.
I am already doing what you are doing in that example file, I’ve checked what is returned by worldPosition, and it is the place obj should end up at (i.e. the location of obj2) but instead it goes elsewhere, still no idea why.