I am trying to get the vector3 position of a game object so that I can move a certain objects to that position without manually having to change the values. How would I get the vector3 of a object and make that value a variable that I can use as if it were a vector3 value Ex. (Vector3(variable))
1 Like
hmm, i really am not sure what you r saying. The facts is, that the gameObjects transform, contains a vector3, its position.
So the gameObject position your trying to find can be obtained easily with …
var myVector3 : Vector3 = gameObject.transform.position;
thanks i figured out why the first time i tried that didnt work lol… I didnt have it in the update function to constantly update. idk why that didnt occur to me.
sorry for my horrible frazing of the question. I do that when im am confused some reason.