The GO, the Collection and the Ugly(me) (SOLVED)

Hello, guys! So i have a nice turret (collection, bcz i need muzzle flash). It works fine, turns and shoots, staying in one place. Also i have body of something like tank(GO). It moves toward player, fine too. Sow how can i attach turret to tank so tank can move turret and turret can rotate how it want.
I try’d total collection for turret and tank, try’d get pos of tank - don’t work for me.

1 Like

Okay, haha i find solution and its good for me, mb it can be usefull. I create collection, put tank and turret into it, then i create empty GO inside tank and move it to position where i want to see my turret, then i just send position of this GO to turret in update().

You can also use the game object message set_parent

1 Like