IVSmoke 1.0
Loading...
Searching...
No Matches
UIVSmokeHolePreset Class Reference

#include <IVSmokeHolePreset.h>

Inheritance diagram for UIVSmokeHolePreset:
Inheritance graph
Collaboration diagram for UIVSmokeHolePreset:
Collaboration graph

Public Member Functions

FORCEINLINE uint8 GetPresetID () const
 

Static Public Member Functions

static TObjectPtr< UIVSmokeHolePresetFindByID (const uint8 InPresetID)
 
static float GetFloatValue (const TObjectPtr< UCurveFloat > Curve, const float X)
 

Public Attributes

EIVSmokeHoleType HoleType = EIVSmokeHoleType::Penetration
 
float Radius = 50.0f
 
float Duration = 3.0f
 
float Softness = 0.3f
 
float ExpansionDuration = 0.15f
 
TObjectPtr< UCurveFloat > ExpansionFadeRangeCurveOverTime
 
TObjectPtr< UCurveFloat > ShrinkFadeRangeCurveOverTime
 
float DistortionExpOverTime = 1.0f
 
float DistortionDistance = 250.0f
 
float EndRadius = 25.0f
 
float BulletThickness = 5.0f
 
FVector3f Extent = FVector3f(50.f, 50.f, 50.f)
 
float DistanceThreshold = 50.0f
 

Protected Member Functions

virtual void PostLoad () override
 
virtual void BeginDestroy () override
 

Detailed Description

Data asset containing hole configuration preset. Automatically registered to global registry on load.

Definition at line 30 of file IVSmokeHolePreset.h.

Member Function Documentation

◆ BeginDestroy()

void UIVSmokeHolePreset::BeginDestroy ( )
overrideprotectedvirtual

Definition at line 14 of file IVSmokeHolePreset.cpp.

◆ FindByID()

TObjectPtr< UIVSmokeHolePreset > UIVSmokeHolePreset::FindByID ( const uint8  InPresetID)
static

Find and return the preset with the key id. If not, return nullptr.

Definition at line 60 of file IVSmokeHolePreset.cpp.

◆ GetFloatValue()

float UIVSmokeHolePreset::GetFloatValue ( const TObjectPtr< UCurveFloat >  Curve,
const float  X 
)
static

Returns the y value corresponding to the x value of the curve. If the curve is nullptr, return 0.

Definition at line 65 of file IVSmokeHolePreset.cpp.

◆ GetPresetID()

FORCEINLINE uint8 UIVSmokeHolePreset::GetPresetID ( ) const
inline

Returns the this preset id.

Definition at line 150 of file IVSmokeHolePreset.h.

◆ PostLoad()

void UIVSmokeHolePreset::PostLoad ( )
overrideprotectedvirtual

Definition at line 7 of file IVSmokeHolePreset.cpp.

Member Data Documentation

◆ BulletThickness

float UIVSmokeHolePreset::BulletThickness = 5.0f

Bullet thickness for obstacle collision detection. Larger values make bullets more likely to be blocked by nearby walls.

Definition at line 128 of file IVSmokeHolePreset.h.

◆ DistanceThreshold

float UIVSmokeHolePreset::DistanceThreshold = 50.0f

Minimum travel distance to make a hole

Definition at line 145 of file IVSmokeHolePreset.h.

◆ DistortionDistance

float UIVSmokeHolePreset::DistortionDistance = 250.0f

Distortion degree max value. The degree of distortion is proportional to (dis(hole voxel to explosion point) / radius).

Definition at line 110 of file IVSmokeHolePreset.h.

◆ DistortionExpOverTime

float UIVSmokeHolePreset::DistortionExpOverTime = 1.0f

Distortion exp value over expansion time. 1 - pow((1 - NormalizedTime), ExpValue)

Definition at line 102 of file IVSmokeHolePreset.h.

◆ Duration

float UIVSmokeHolePreset::Duration = 3.0f

Total effect duration.

Definition at line 59 of file IVSmokeHolePreset.h.

◆ EndRadius

float UIVSmokeHolePreset::EndRadius = 25.0f

EndRadius represents the radius at the EndPosition in a penetration hole.

Definition at line 120 of file IVSmokeHolePreset.h.

◆ ExpansionDuration

float UIVSmokeHolePreset::ExpansionDuration = 0.15f

Expansion time. The expansion time is used for expansion-related curve values.

Definition at line 76 of file IVSmokeHolePreset.h.

◆ ExpansionFadeRangeCurveOverTime

TObjectPtr<UCurveFloat> UIVSmokeHolePreset::ExpansionFadeRangeCurveOverTime

Fade range curve over expansion time. Use normalized time between 0 and 1.

Definition at line 84 of file IVSmokeHolePreset.h.

◆ Extent

FVector3f UIVSmokeHolePreset::Extent = FVector3f(50.f, 50.f, 50.f)

The size of a hole

Definition at line 138 of file IVSmokeHolePreset.h.

◆ HoleType

EIVSmokeHoleType UIVSmokeHolePreset::HoleType = EIVSmokeHoleType::Penetration

Hole Type. 0 = Penetration, 1 = Explosion, 2 = Dynamic Create a hole in a different way depending on this value.

Definition at line 47 of file IVSmokeHolePreset.h.

◆ Radius

float UIVSmokeHolePreset::Radius = 50.0f

This radius range that affects.

Definition at line 53 of file IVSmokeHolePreset.h.

◆ ShrinkFadeRangeCurveOverTime

TObjectPtr<UCurveFloat> UIVSmokeHolePreset::ShrinkFadeRangeCurveOverTime

Fade out range curve over shrink time. At the end of the expansion time, the shrink time begins. ShrinkDuration = Duration - ExpansionDuration Use normalized time between 0 and 1

Definition at line 94 of file IVSmokeHolePreset.h.

◆ Softness

float UIVSmokeHolePreset::Softness = 0.3f

Softness of the edges. 0 = hard edge, 1 = soft gradient

Definition at line 66 of file IVSmokeHolePreset.h.


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