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
Have a good Day!