REFERENCECOMPONENTS
UCFRollingAudioComponent
Per-wheel tyre rolling sound. Every wheel has a voice that follows the surface under it and crossfades between two sound slots; each slot is played by its own UAudioComponent on the wheel's AttachTo (socket AttachSocket) or, without one, under this component at the wheel's contact point. The wheels and the surface come from the owner's wheel host (ICFWheelHost), a surface's sound from its row in UCFSettings::Surfaces, and the tuning from UCFWheelSettings unless bOverrideTuning, so a body needs no setup beyond owning this component. Presentation only: idle on a dedicated server and writes no physics.
Functions
False only for a dedicated server, which has no listener to hear a tyre.
Sets who answers ICFWheelHost for the owner; null means the registry's host for the owner. Call before BeginPlay: a later call is refused.
The explicit host, else UCFHostRegistry::FindHost(Owner, UCFWheelHost).
Muffles the rolling sound for a listener inside the cab. InVolumeScale multiplies the volume while muffled, InLowPassFrequency is the cutoff in Hz. Local to this machine. The volume follows on the next tick; the low-pass filter applies at once.
- Category
- Crushform|Rolling Sound
Whether the rolling sound is muffled for a listener inside the cab.
- Category
- Crushform|Rolling Sound
The tuning in use: OverrideTuning when bOverrideTuning, else UCFWheelSettings::Tuning; read in BeginPlay.
The volume scale and low-pass frequency SetCabinMuffling last gave.
The low-pass cutoff in Hz that SetCabinMuffling last gave.
One voice per wheel, indexed by WheelIndex: grows to the largest index the host has reported.
The audio component playing one slot (0 or 1) of one wheel's voice; nullptr until that slot first has something to play.
Tests only. An unset override restores the real check; a set one answers the listener-in-range question.
Tests only. An unset override restores the real wheel speed; a set one is the speed (km/h) of every wheel.
Properties
Uses this component's Override Tuning instead of UCFWheelSettings::Tuning. Read in BeginPlay.
- Default
- false
- Category
- Crushform|Rolling Sound
The tuning used when Override Tuning is on.
- Category
- Crushform|Rolling Sound