- Home /
 
               Question by 
               Snownebula · May 25, 2015 at 11:18 AM · 
                transformpositionvector3  
              
 
              How do you get the vector3 of one object and assign that vector3 to another object?
I am trying to take a vector3 of one object than put that vector3 on another. I want to have some space ships out of the view of the player and than move them to their view. I have a object that is the spawn location or object for the ships to be moved to. I just need to get the spawn spot vector3 and assign it to one of the ships.
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by DoTA_KAMIKADzE · May 25, 2015 at 11:28 AM
That should look something like that:
 GameObject spawnLocation;
 GameObject spaceShip;
 void SomeFunction()
 {
     spaceShip.transform.position = spawnLocation.transform.position;
 }
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                