- Home /
 
 
               Question by 
               flaviolight92 · Feb 13, 2017 at 08:20 AM · 
                velocityaddforceslide  
              
 
              How to slide when i change direction of my 2dcharacter
I want that my character slide a little before i change direction how can i solve that? i tried also with AddForce() but i read that is better to use velocity for character controller and i'm a noob so velocity is easier
   void MovementAnimation()
     {
         float move = Input.GetAxis("Horizontal");
         anim.SetFloat("Speed", Mathf.Abs(move));
         rb.velocity = new Vector2(move * maxSpeed, rb.velocity.y);
         Flip(move);
 
     }
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Accelerate a rigidbody towards max speed 2 Answers
Rigidbody2D.velocity.x not working but Y does 0 Answers
Football free kick question? 1 Answer
Constant force motion: s = s0 + v0 * t + a0 * t * t. Why? 1 Answer
Stopping a rigidbody immediately 2 Answers