Space Plunder
Loading...
Searching...
No Matches
EBMaterialResponseMap.h
Go to the documentation of this file.
1// Copyright 2016 Mookie. All Rights Reserved.
2
3
4#pragma once
5
6#include "CoreMinimal.h"
7#include "Engine/DataAsset.h"
8#include "PhysicalMaterials/PhysicalMaterial.h"
9#include "EBMaterialResponseMap.generated.h"
10
11UENUM(BlueprintType)
12enum class EPenTraceType : uint8
13{
14 PT_BackTrace UMETA(DisplayName = "Back Trace"),
15 PT_ByComponent UMETA(DisplayName = "By Component"),
16 PT_TwoSidedGeometry UMETA(DisplayName = "Double Sided Geometry"),
17};
18
19USTRUCT(BlueprintType)
21 GENERATED_USTRUCT_BODY()
22
23 UPROPERTY(EditAnywhere, Category = "Material") EPenTraceType PenTraceType = EPenTraceType::PT_BackTrace;
24 UPROPERTY(EditAnywhere, Category = "Material") bool NeverPenetrate = false;
25 UPROPERTY(EditAnywhere, Category = "Material") float PenetrationDepthMultiplier = 1.0f;
26 UPROPERTY(EditAnywhere, Category = "Material") float PenetrationNormalization = 0.0f;
27 UPROPERTY(EditAnywhere, Category = "Material") float PenetrationNormalizationGrazing = 0.0f;
28 UPROPERTY(EditAnywhere, Category = "Material") float PenetrationEntryAngleSpread = 0.0f;
29 UPROPERTY(EditAnywhere, Category = "Material") float PenetrationExitAngleSpread = 0.0;
30 UPROPERTY(EditAnywhere, Category = "Material") bool NeverRicochet = false;
31 UPROPERTY(EditAnywhere, Category = "Material") float RicochetProbabilityMultiplier = 1.0f;
32 UPROPERTY(EditAnywhere, Category = "Material") float RicochetRestitution = 0.5f;
33 UPROPERTY(EditAnywhere, Category = "Material") float RicochetRestitutionInfluence = 0.0f;
34 UPROPERTY(EditAnywhere, Category = "Material") float RicochetFriction = 0.5f;
35 UPROPERTY(EditAnywhere, Category = "Material") float RicochetFrictionInfluence = 0.0f;
36 UPROPERTY(EditAnywhere, Category = "Material") float RicochetSpread = 0.0f;
37};
38
39UCLASS(BlueprintType)
40class UEBMaterialResponseMap : public UDataAsset{
41 GENERATED_BODY()
42
43public:
44 UPROPERTY(EditAnywhere, Category = "Responses") TMap<UPhysicalMaterial*, FEBMaterialResponseMapEntry> Map;
45};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
EPenTraceType
Definition EBMaterialResponseMap.h:13
Definition EBMaterialResponseMap.h:40
Definition EBMaterialResponseMap.h:20