- Home /
 
 
               Question by 
               deeds0l · Apr 21, 2014 at 12:12 PM · 
                move an objectcharacter controlling  
              
 
              Moving an object using charactercontroller.move
I have a movement variable which I used to increment my position.z so that I could move my character controller but when I use CharacterController().Move(movement) it also moves my position.y
 void Start()
 {    
 movement = new Vector3(0,0,0.01f);
 }
 
 void Update()
 {
 gameObject.GetComponentInChildren().Move(movement);
 }
 
              
               Comment
              
 
               
              Which direction is the object moving on the y-axis? Positive or negative? Character Controller is technically speaking a rigidbody and is thus affected by gravity.
@Ed unity - no, a CharacterController is not a Rigidbody, and you only get gravity with a CC if you implement it.
Your answer