[Newbie] Use worldspace coordinate for moving

Hi guys,

So, first !
Sorry for my bad english, it’s not my first language and I’m a CG artist then all scripting stuffs are … complicated.

Now, lets’go for my question. :slight_smile:

Is it possible in Unity to take the world space coordinate of one moving object and use this coordinate to do a translation of one other object to this coordinate.

For example :
We have 2 objects, A and B.

Object A is moving into the scene and when I click, object B goes at the position of object A.

What king of script a can use to do this ?

If you could also explain the different lines of the script, it 'll be very usefull for me.

I hope someone can help me or give me some advices.

Thanks !
Bye bye

Can you explain in more detail what you’re after? When you click, do you want object B to ‘teleport’ to object A’s position? To start moving towards object A’s position? Something else?

Exactly that !
Object B is teleport to object’s A position. And after, object A disappear.

Up. :slight_smile:

Nobody knows ?

:frowning:

What is the difficulty in manipulating a transform position of a game Object ?

As AkilaeTribe alluded to, it’s quite simple: just assign the position of object B’s transform to the position of object A’s transform.