UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPhysicsFieldInstance Class Reference

#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

FPhysicsFieldResourceFieldResource = nullptr
 
TStaticArray< int32, EFieldPhysicsType::Field_PhysicsType_Max+1 > TargetsOffsets
 
TStaticArray< int32, EFieldPhysicsType::Field_PhysicsType_Max+1 > BoundsOffsets
 
TArray< int32NodesOffsets
 
TArray< floatNodesParams
 
TArray< FVector4BoundsMin
 
TArray< FVector4BoundsMax
 
TArray< FFieldSystemCommandFieldCommands
 
TArray< FVectorTargetsMin
 
TArray< FVectorTargetsMax
 

Detailed Description

An instance of a Physics Field.

Constructor & Destructor Documentation

◆ FPhysicsFieldInstance()

FPhysicsFieldInstance::FPhysicsFieldInstance ( )
inline

Default constructor.

◆ ~FPhysicsFieldInstance()

FPhysicsFieldInstance::~FPhysicsFieldInstance ( )
inline

Destructor.

Member Function Documentation

◆ InitInstance()

void FPhysicsFieldInstance::InitInstance ( const TArray< EFieldPhysicsType > &  TargetTypes,
const bool  bBuildClipmap 
)

Initializes the instance for the given resource.

Parameters
TextureSize- The resource texture size to be used.

FPhysicsFieldInstance

◆ ReleaseInstance()

void FPhysicsFieldInstance::ReleaseInstance ( )

Release the resource of the instance.

◆ UpdateInstance()

void FPhysicsFieldInstance::UpdateInstance ( const float  TimeSeconds,
const bool  bIsDebugBuffer 
)

Update the datas based on the new bounds and commands

Parameters
FieldCommands- Field commands to be sampled

Member Data Documentation

◆ BoundsMax

TArray<FVector4> FPhysicsFieldInstance::BoundsMax

Commands bounds max sorted per target type

◆ BoundsMin

TArray<FVector4> FPhysicsFieldInstance::BoundsMin

Commands bounds min sorted per target type

◆ BoundsOffsets

TStaticArray<int32, EFieldPhysicsType::Field_PhysicsType_Max + 1> FPhysicsFieldInstance::BoundsOffsets

Bounds offsets in the bounds array

◆ FieldCommands

TArray<FFieldSystemCommand> FPhysicsFieldInstance::FieldCommands

List of all the field commands in the world

◆ FieldResource

FPhysicsFieldResource* FPhysicsFieldInstance::FieldResource = nullptr

The field system resource.

◆ NodesOffsets

TArray<int32> FPhysicsFieldInstance::NodesOffsets

Nodes offsets in the paramter array

◆ NodesParams

TArray<float> FPhysicsFieldInstance::NodesParams

Nodes input parameters and connection

◆ TargetsMax

TArray<FVector> FPhysicsFieldInstance::TargetsMax

Max Bounds for each target/clipmap

◆ TargetsMin

TArray<FVector> FPhysicsFieldInstance::TargetsMin

Min Bounds for each target/clipmap

◆ TargetsOffsets

TStaticArray<int32, EFieldPhysicsType::Field_PhysicsType_Max + 1> FPhysicsFieldInstance::TargetsOffsets

Targets offsets in the nodes array


The documentation for this class was generated from the following files: