How would I counteract the speed of the player after I stop pressing movement inputs? I need a solution that uses addforce modifying velocity causes lot's of problems for my player controller.
___
**Code i'm using to move:.**
float x = Input.GetAxisRaw("Horizontal");
float z = Input.GetAxisRaw("Vertical");
rb.AddForce(transform.forward * z * speed, ForceMode.Acceleration);
rb.AddForce(transform.right * x * speed, ForceMode.Acceleration);
.
↧