![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PhysicsFieldComponent.h>
Public Member Functions | |
| FPhysicsFieldInstance () | |
| ~FPhysicsFieldInstance () | |
| void | InitInstance (const TArray< EFieldPhysicsType > &TargetTypes, const bool bBuildClipmap) |
| void | ReleaseInstance () |
| void | UpdateInstance (const float TimeSeconds, const bool bIsDebugBuffer) |
Public Attributes | |
| FPhysicsFieldResource * | FieldResource = nullptr |
| TStaticArray< int32, EFieldPhysicsType::Field_PhysicsType_Max+1 > | TargetsOffsets |
| TStaticArray< int32, EFieldPhysicsType::Field_PhysicsType_Max+1 > | BoundsOffsets |
| TArray< int32 > | NodesOffsets |
| TArray< float > | NodesParams |
| TArray< FVector4 > | BoundsMin |
| TArray< FVector4 > | BoundsMax |
| TArray< FFieldSystemCommand > | FieldCommands |
| TArray< FVector > | TargetsMin |
| TArray< FVector > | TargetsMax |
An instance of a Physics Field.
|
inline |
Default constructor.
|
inline |
Destructor.
| void FPhysicsFieldInstance::InitInstance | ( | const TArray< EFieldPhysicsType > & | TargetTypes, |
| const bool | bBuildClipmap | ||
| ) |
Initializes the instance for the given resource.
| TextureSize | - The resource texture size to be used. |
| void FPhysicsFieldInstance::ReleaseInstance | ( | ) |
Release the resource of the instance.
Update the datas based on the new bounds and commands
| FieldCommands | - Field commands to be sampled |
| TStaticArray<int32, EFieldPhysicsType::Field_PhysicsType_Max + 1> FPhysicsFieldInstance::BoundsOffsets |
Bounds offsets in the bounds array
| TArray<FFieldSystemCommand> FPhysicsFieldInstance::FieldCommands |
List of all the field commands in the world
| FPhysicsFieldResource* FPhysicsFieldInstance::FieldResource = nullptr |
The field system resource.
| TStaticArray<int32, EFieldPhysicsType::Field_PhysicsType_Max + 1> FPhysicsFieldInstance::TargetsOffsets |
Targets offsets in the nodes array