- Home /
 
               Question by 
               mwasi · Jun 18, 2015 at 06:25 AM · 
                javascriptpositionobjectmove  
              
 
              How to move an object from one position to desired position?
I want to move a sphere from the foot of a character towords desired direction. i used following method but it takes vector3.moveTowards():Is not should be object.moveTowards():? Vector3.MoveTowards(startPos,endPos, Time.deltaTime * coinSpeed);
               Comment
              
 
               
              no..u cant use like that.. $$anonymous$$ostly like this..
http://docs.unity3d.com/ScriptReference/Vector3.$$anonymous$$oveTowards.html
(or)
u can use that sphere as a prefab and give this script in sphere, then instantiate that sphere from the character's foot..
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                