Hi, i am creating my first own 2d Unity Project. i Made my character move with rb.Addforce, but after the character moves, and you let go of the button it takes a while before the character stands still again. it kinda drifts across and slowly loses acceleration. is there a way to minimize the time it takes for my character to stop moving, or tottally delete the drifting thing, or somehow set the acceleration to 0?.
i tried this cuz i only want to affect the x acceleration but doesnt work: rb.velocity.x = 0f;
Im totally new to unity and sorry for my not too great English.
↧