- Home /
 
               Question by 
               Baglison · Feb 06, 2017 at 07:49 AM · 
                unity 5gameobjecttransformtransform.positiontranslate  
              
 
              Moving a GameObject to a certain point in world space via script
Hey Guys! 
 Do you know how to move a GameObject to a certain position in World Space? 
 I've tried 'Translate(Vector3, Space,World)' and changing the transform's position, 
 but in both cases my GameObject just keeps flying into the sky. 
               Comment
              
 
               
              Answer by FatCatStep · Apr 14, 2017 at 05:53 AM
Set the transform position equal to a Vector3 in which you store the coordinates. Something along the lines of
gameObject.transform.position = new Vector3(coordinateX, coordinateY, coordinateZ);
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                