|
IVSmoke 1.0
|
#include <IVSmokeHolePreset.h>


Public Member Functions | |
| FORCEINLINE uint8 | GetPresetID () const |
Static Public Member Functions | |
| static TObjectPtr< UIVSmokeHolePreset > | FindByID (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 |
Data asset containing hole configuration preset. Automatically registered to global registry on load.
Definition at line 30 of file IVSmokeHolePreset.h.
|
overrideprotectedvirtual |
Definition at line 14 of file IVSmokeHolePreset.cpp.
|
static |
Find and return the preset with the key id. If not, return nullptr.
Definition at line 60 of file IVSmokeHolePreset.cpp.
|
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.
|
inline |
Returns the this preset id.
Definition at line 150 of file IVSmokeHolePreset.h.
|
overrideprotectedvirtual |
Definition at line 7 of file IVSmokeHolePreset.cpp.
| 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.
| float UIVSmokeHolePreset::DistanceThreshold = 50.0f |
Minimum travel distance to make a hole
Definition at line 145 of file IVSmokeHolePreset.h.
| 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.
| float UIVSmokeHolePreset::DistortionExpOverTime = 1.0f |
Distortion exp value over expansion time. 1 - pow((1 - NormalizedTime), ExpValue)
Definition at line 102 of file IVSmokeHolePreset.h.
| float UIVSmokeHolePreset::Duration = 3.0f |
Total effect duration.
Definition at line 59 of file IVSmokeHolePreset.h.
| float UIVSmokeHolePreset::EndRadius = 25.0f |
EndRadius represents the radius at the EndPosition in a penetration hole.
Definition at line 120 of file IVSmokeHolePreset.h.
| 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.
| 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.
| FVector3f UIVSmokeHolePreset::Extent = FVector3f(50.f, 50.f, 50.f) |
The size of a hole
Definition at line 138 of file IVSmokeHolePreset.h.
| 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.
| float UIVSmokeHolePreset::Radius = 50.0f |
This radius range that affects.
Definition at line 53 of file IVSmokeHolePreset.h.
| 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.
| float UIVSmokeHolePreset::Softness = 0.3f |
Softness of the edges. 0 = hard edge, 1 = soft gradient
Definition at line 66 of file IVSmokeHolePreset.h.