carla/Util/Patches/omniverse_4.26/USDCARLAInterface.h

59 lines
2.0 KiB
C++

#pragma once
#include "UObject/Object.h"
#include "CoreMinimal.h"
#include "USDCARLAInterface.generated.h"
USTRUCT(BlueprintType)
struct FUSDCARLAWheelData
{
GENERATED_BODY()
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Wheeel Data")
float MaxBrakeTorque = 0;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Wheeel Data")
float MaxHandBrakeTorque = 0;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Wheeel Data")
float MaxSteerAngle = 0;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Wheeel Data")
float SpringStrength = 0;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Wheeel Data")
float MaxCompression = 0;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Wheeel Data")
float MaxDroop = 0;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Wheeel Data")
float LateralStiffnessX = 0;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Wheeel Data")
float LateralStiffnessY = 0;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Wheeel Data")
float LongitudinalStiffness = 0;
};
USTRUCT(BlueprintType)
struct FUSDCARLALight
{
GENERATED_BODY()
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Light")
FString Name;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Light")
FVector Location;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="USD Light")
FLinearColor Color;
};
UCLASS()
class OMNIVERSEUSD_API UUSDCARLAInterface : public UObject
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, Category="USD Carla Interface")
static bool ImportUSD(
const FString& Path, const FString& Dest,
bool bImportUnusedReferences, bool bImportAsBlueprint);
UFUNCTION(BlueprintCallable, Category="USD Carla Interface")
static TArray<FUSDCARLALight> GetUSDLights(const FString& Path);
UFUNCTION(BlueprintCallable, Category="USD Carla Interface")
static TArray<FUSDCARLAWheelData> GetUSDWheelData(const FString& Path);
};