I wanna stop immediately (not instantly) when I release a key so it would not slide. I don’t wanna use rb.isKinematic = false;
because it’s just stopping so instant. So like I thought about:
x = GetAxisRaw("Horizontal");
z = GetAxisRaw("Vertical");
move = transform.right * x + transform.forward * z;
if (no inputs pressed)
{
rb.AddForce(force * -maxSpeed); // maybe force will be the current velocity
}
I tried this but seems like nothing is hapenning. And so I think I need some improvements