the problem i run into is this line specifically.
rollingParam.setValue(Mathf.Max(Mathf.Abs(rb.velocity.x), Mathf.Abs(rb.velocity.z)) * 40.0f);
(my “rb” is the rigid body from the original unity project)
these are the errors I get.
NullReferenceException: Object reference not set to an instance of an object PlayerController.FixedUpdate () (at Assets/Scripts/PlayerController.cs:45)
FMOD Studio: Instance of Event event:/Movement found playing at the origin. EventInstance.set3DAttributes() should be called on all 3D events UnityEngine.Debug:LogWarningFormat(String, Object)
So this leads me to believe that somehow the project supplied with the tutorials have something already set up, however I can’t see exactly where it is.
Another thing, that when I take out the line above my “movement” sound is triggered from the “ambience emitter” and not the player… seems really strange, seeing as how I am copying the code line for line and nothing was mentioned about how to set it up otherwise in the videos.