Velocity seems To change

Hi everybody !

I’m doing à 2d game on Android.
I’m using basic velocity to move my player with a simple new vector 2 .

But when my player is moving , his velocity seems to rise up and decrease every second ( i’m not using gravity or other physic setting wich can influence the physic )

My code is in the fixedUpdate like that :

Void  FixedUpdate ()
{
      if  ( get input right  )
      {
         New vector  2 ....// code To right
      }
}

If someone can tell me what happen i really appreciate !

Thanks for reading me :slight_smile:
Have a good Day!

Is there drag set on the rigidbody2d? Maybe post the full input script if that’s not the case?
physics material at all?

What are you doing with that vector? Settings velocity to it? Adding force?

Thanks for your anwser and thank you so much to @methos5k !

I had a little angular drag … Newbi’s mistake ^^’

Thx to you to solve my problem !

Have a good night!

Cool, glad ya got it resolved :slight_smile:

1 Like