Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float speedPercent = Mathf.InverseLerp(0, maxSpeed, rb.velocity.magnitude);
- audioSource.pitch = Mathf.Lerp(audioSource.pitch, Mathf.Lerp(0.8f, 2.0f, speedPercent), Time.deltaTime * 5f);
Advertisement
Add Comment
Please, Sign In to add comment