Eonirr

Untitled

Mar 28th, 2025
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. float speedPercent = Mathf.InverseLerp(0, maxSpeed, rb.velocity.magnitude);
  2. 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