Navigation
API > API/Runtime > API/Runtime/FieldSystemEngine > API/Runtime/FieldSystemEngine/Field > API/Runtime/FieldSystemEngine/Field/UFieldSystemComponent
References
| Module | FieldSystemEngine |
| Header | /Engine/Source/Runtime/Experimental/FieldSystem/Source/FieldSystemEngine/Public/Field/FieldSystemComponent.h |
| Include | #include "Field/FieldSystemComponent.h" |
| Source | /Engine/Source/Runtime/Experimental/FieldSystem/Source/FieldSystemEngine/Private/Field/FieldSystemComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Field", DisplayName="Apply Uniform Force",
Meta=(UnsafeDuringActorConstruction="true"))
void ApplyLinearForce
(
UPARAM(DisplayName="Enable Field") bool Enabled,
UPARAM(DisplayName="Uniform Direction") FVector Direction,
UPARAM(DisplayName="Field Magnitude") float Magnitude
)
Remarks
ApplyUniformForce This function will dispatch a command to the physics thread to apply a uniform linear force on each particle within the simulation.
Parameters
| Name | Description |
|---|---|
| Enabled | Is this force enabled for evaluation. |
| Direction | The direction of the linear force |
| Magnitude | The size of the linear force. |