![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <WindDirectionalSourceComponent.h>
Inheritance diagram for UWindDirectionalSourceComponent:Public Member Functions | |
| ENGINE_API void | SetStrength (float InNewStrength) |
| ENGINE_API void | SetSpeed (float InNewSpeed) |
| ENGINE_API void | SetMinimumGustAmount (float InNewMinGust) |
| ENGINE_API void | SetMaximumGustAmount (float InNewMaxGust) |
| ENGINE_API void | SetRadius (float InNewRadius) |
| ENGINE_API void | SetWindType (EWindSourceType InNewType) |
| ENGINE_API bool | GetWindParameters (const FVector &EvaluatePosition, FWindData &OutData, float &Weight) const |
| virtual ENGINE_API FWindSourceSceneProxy * | CreateSceneProxy () const |
Public Attributes | |
| FWindSourceSceneProxy * | SceneProxy |
Component that provides a directional wind source. Only affects SpeedTree assets.
|
overrideprotectedvirtual |
|
virtual |
Creates a proxy to represent the primitive to the scene manager in the rendering thread.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| bool UWindDirectionalSourceComponent::GetWindParameters | ( | const FVector & | EvaluatePosition, |
| FWindData & | OutData, | ||
| float & | Weight | ||
| ) | const |
Calculate wind parameters from the data on this component, safe to call on game thread
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Set maximum deviation for wind gusts
Set minimum deviation for wind gusts
Set the effect radius for point wind
Sets the windspeed of the generated wind
Because the actual data used to query wind is stored on the render thread in an instance of FWindSourceSceneProxy all of our properties are read only. The data can be manipulated with the following functions which will queue a render thread update for this component Sets the strength of the generated wind
| void UWindDirectionalSourceComponent::SetWindType | ( | EWindSourceType | InNewType | ) |
Set the type of wind generator to use
| FWindSourceSceneProxy* UWindDirectionalSourceComponent::SceneProxy |