FPhysicsFieldResource

Physics Field render resource.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FRenderResource

FPhysicsFieldResource

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsField/PhysicsFieldComponent.h

Include

#include "PhysicsField/PhysicsFieldComponent.h"

Syntax

class FPhysicsFieldResource : public FRenderResource

Remarks

Physics Field render resource.

Variables

Name Description

Public variable

FRWBuffer

 

BoundsMax

Bounds max buffer

Public variable

FRWBuffer

 

BoundsMin

Bounds Min buffer

Public variable

FRWBuffer

 

CellsMax

Cells max buffer

Public variable

FRWBuffer

 

CellsMin

Cells Min buffer

Public variable

FRWBuffer

 

CellsOffsets

Cells offsets buffer

Public variable

FRWBuffer

 

ClipmapBuffer

Field cached clipmap buffer

Public variable

FPhysicsFieldIn...

 

FieldInfos

Field infos that will be used to allocate memory and to transfer information

Public variable

FRWBuffer

 

NodesOffsets

Field nodes offsets buffer

Public variable

FRWBuffer

 

NodesParams

Field nodes params buffer

Public variable

FRWBuffer

 

TargetsOffsets

Field targets nodes buffer

Constructors

Name Description

Public function

FPhysicsFieldResource

(
    const int32 TargetCount,
    const TArray< EFieldPhysicsType >&...,
    const FPhysicsFieldInfos::BufferOff...,
    const FPhysicsFieldInfos::BufferOff...,
    const FPhysicsFieldInfos::BufferOff...,
    const FPhysicsFieldInfos::BufferOff...,
    const TStaticArray< FIntVector4, 32...,
    const bool bBuildClipmap
)

Default constructor.

Functions

Name Description

Public function

void

 

UpdateBounds

(
    const TArray< FVector >& TargetsMi...,
    const TArray< FVector >& TargetsMa...,
    const TStaticArray< int32, EFieldPh...,
    const TStaticArray< int32, EFieldPh...
)

Update Bounds.

Public function

void

 

UpdateResource

(
    FRHICommandListImmediate& RHICmdLi...,
    const TStaticArray< int32, EFieldPh...,
    const TArray< int32 >& NodesOffset...,
    const TArray< float >& NodesParams...,
    const TArray< FVector >& TargetsMi...,
    const TArray< FVector >& TargetsMa...,
    const float TimeSeconds,
    const TArray< FVector4 >& BoundsMi...,
    const TArray< FVector4 >& BoundsMa...,
    const TStaticArray< int32, EFieldPh...
)

Update RHI resources.

Overridden from FRenderResource

Name Description

Public function Virtual

void

 

InitRHI()

Init Field resources.

Public function Virtual

void

 

ReleaseRHI()

Release Field resources.