i currently have a movement script where my character can move left right forward and back(duh). But for some reason when i begin moving the character keeps increasing their speed. does anyone know how to fix?
moveDirection = new Vector3(Input.GetAxisRaw(“Horizontal”), 0, Input.GetAxisRaw(“Vertical”));
moveDirection = transform.TransformDirection(moveDirection);
rb.AddForce(moveDirection * speed * Time.deltaTime);