AudioRotateControl.cs
Dynamically controls the pitch and volume of an AudioSource based on the rotational velocity of a ModelController.
Fields & Properties
float minSpeed
The minimum rotation speed.
Default: 0f
float maxSpeed
The maximum rotation speed.
Default: 5f
AudioSource audioSource
The AudioSource
component to modify.
float audioMaxSpeed
The maximum speed for audio adjustments.
Default: 0.01f
float audioPitchMod
Optional modifier for the audio pitch.
Default: 0f
float audioLerpSpeed
The interpolation speed for audio volume.
Default: 0.1f
float minPitch
The minimum pitch value.
Default: 0.85f
float maxPitch
The maximum pitch value.
Default: 1.05f
float minVol
The minimum volume value.
Default: 0f
float maxVol
The maximum volume value.
Default: 1f
LookingGlass.Demos.ModelController modelController
Reference to the ModelController
component.
Default: null
Last updated
Was this helpful?