Receiving game object position and rotation (SOLVED)

Hello brothers
I have a generator, which is creating levels from road tiles.
After spawning a tile, the tile sends to the generator message with his end’s position and rotation:


then the generator receives the message and spawns next tile using received position and rotation:

25
But in some reason tile doesn’t send his real position and rotation in world coordinates, but his local in collection file he located.
Here an example of tile collection:

Can u help me, whats the reason and how can I deal with it.

P.S. When all staff in “tile” was stored just in collection, all worked fine, but I placed it in one game object for correct deleting tile.

Maybe you could try with go.get_world_rotation()? But I haven’t looked in details to your code… So probably I am missing something…

ah, thanks
I didn’t mention this function, now all is working

1 Like