13#include "BPFunLib_Ballistic.generated.h"
23USTRUCT(BlueprintType, Category=
"YasiuMath|Ballistics")
28 UPROPERTY(BlueprintReadWrite, Category=
"YasiuMath")
32 UPROPERTY(BlueprintReadWrite, Category=
"YasiuMath")
36 UPROPERTY(BlueprintReadWrite, Category=
"YasiuMath")
40 UPROPERTY(BlueprintReadWrite, Category=
"YasiuMath")
47 UPROPERTY(BlueprintReadWrite, Category=
"YasiuMath")
61USTRUCT(BlueprintType, Category=
"YasiuMath|Ballistics")
65 UPROPERTY(BlueprintReadWrite, Category=
"YasiuMath")
72 UPROPERTY(BlueprintReadWrite, Category=
"YasiuMath")
76 UPROPERTY(BlueprintReadWrite, Category=
"YasiuMath")
80 UPROPERTY(BlueprintReadWrite, Category=
"YasiuMath")
84 UPROPERTY(BlueprintReadWrite, Category=
"YasiuMath")
108 UFUNCTION(BlueprintCallable, BlueprintPure=
false, Category=
"YasiuMath|Ballistics")
124 UFUNCTION(BlueprintCallable, BlueprintPure=false, Category=
"YasiuMath|Ballistics")
137 UFUNCTION(BlueprintCallable, BlueprintPure=false, Category=
"YasiuMath|Ballistics")
139 const FVector& TargetPosition,
140 const FVector& TargetVelocity,
141 double InterceptSpeed,
142 FVector& HitLocation,
157 UFUNCTION(BlueprintCallable, BlueprintPure=false, Category=
"YasiuMath|Ballistics")
163 double AccurateStepTime,
164 FVector& HitLocation,
Function library used for projectile prediction and missile interception calculations.
Definition BPFunLib_Ballistic.h:97
static bool Intercept_Dynamic(const FBallisticObject &Target, const FBallisticInterceptor Interceptor, double MaxQueryTime, double StepTime, double AccurateStepTime, FVector &HitLocation, double &HitTime)
Prediction function for objects with variable speed and resistance.
static FBallisticObject AutoStep(const FBallisticObject &Ob, const float PredictTime, const float DeltaStep)
Predict multiple steps in loop. Optimized for AirDrag=0, see details...
static bool Intercept_Linear(const FVector &TargetPosition, const FVector &TargetVelocity, double InterceptSpeed, FVector &HitLocation, double &HitTime)
Prediction function for linear objects. Works only for objects with constant speeds,...
static FBallisticObject DiscreteStep(const FBallisticObject &Ob, const float DeltaStep)
Single iterative step.
BP Function placeholder to group libraries in documentation.
Definition YasiuMathBPLibrary.h:29
Linear and dynamic objects simulation / prediction.
Definition YasiuMathLib.h:578
Categorized name spaces.
Definition Constants.h:10
Type for passing parameters, see details how use...
Definition BPFunLib_Ballistic.h:62
double Acceleration
Acceleration in any direction.
Definition BPFunLib_Ballistic.h:77
double AirResistance
Keep in <0, 1> range!
Definition BPFunLib_Ballistic.h:85
double InitialSpeed
Speed at which object starts moving, should move towards correct location!
Definition BPFunLib_Ballistic.h:73
double MaxSpeed
Max speed object can reach with acceleration, 0 or less is ignored.
Definition BPFunLib_Ballistic.h:81
Type for simulating movement, see details how use...
Definition BPFunLib_Ballistic.h:24
FVector Position
Current position.
Definition BPFunLib_Ballistic.h:29
float MaxSpeed
Maximal speed(length) of velocity vector.
Definition BPFunLib_Ballistic.h:41
float AirFrictionCoeff
Movement resistance opposite to current velocity vector. Must be in <0, 1> range. More in details....
Definition BPFunLib_Ballistic.h:48
FVector Acceleration
Acceleration or Deceleration or combined with Gravity Forces.
Definition BPFunLib_Ballistic.h:37
FVector Velocity
Movement velocity vector.
Definition BPFunLib_Ballistic.h:33