30 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category =
"Velocity")
33 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Velocity")
34 FVector AngularVelocity;
36 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Velocity")
37 FRotator RotationRate;
40 : Velocity(FVector::ZeroVector)
41 , AngularVelocity(FVector::ZeroVector)
42 , RotationRate(FRotator::ZeroRotator)
48 return Velocity.Size();
53 return FString::Printf(TEXT(
"Velocity: %s | Angular Velocity: %s | Rotation Rate: %s"),
55 *AngularVelocity.ToString(),
56 *RotationRate.ToString());
79 virtual void PostPhysTick(UWorld *World, ELevelTick TickType,
float DeltaSeconds)
override;
86 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
"Sensor|Rate", meta=(ClampMin=
"1.0", UIMin=
"1.0"))
87 float MinRateHz = 1.0f;
88 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Sensor|Rate", meta=(ClampMin="1.0", UIMin="1.0"))
89 float MaxRateHz = 1000.0f;
91 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Sensor|Rate", meta=(ClampMin="1.0", ClampMax="1000.0", UIMin="1.0", UIMax="1000.0"))
92 float TargetRateHz = 30.0f;
101 FTimerHandle CheckParentTimerHandle;
102 void CheckForParentVehicle();
106 void CollectAndStream(
float DeltaSeconds);
107 void SetVelocityInfoToLocal(const
AActor* VehicleActor);
111 static FORCEINLINE T CmpsToMps(const T& v_cmps)
113 return v_cmps * 0.01f;