-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhysicsInterfaceTypes.h
More file actions
78 lines (64 loc) · 2.14 KB
/
Copy pathPhysicsInterfaceTypes.h
File metadata and controls
78 lines (64 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "EngineGlobals.h"
#include "Engine/EngineTypes.h"
#include "PhysicsInterfaceDeclares.h"
#include "BodySetupEnums.h"
#include "PhysicsInterfaceTypesCore.h"
#include "Chaos/Serializable.h"
namespace Chaos
{
class FImplicitObjectUnion;
class FImplicitObject;
class FTriangleMeshImplicitObject;
}
class UPhysicalMaterialMask;
class UMaterialInterface;
// Defines for enabling hitch repeating (see ScopedSQHitchRepeater.h)
#if !UE_BUILD_SHIPPING
#define DETECT_SQ_HITCHES 1
#endif
#ifndef DETECT_SQ_HITCHES
#define DETECT_SQ_HITCHES 0
#endif
struct FKAggregateGeom;
struct FPhysicalMaterialMaskParams
{
/** Physical materials mask */
UPhysicalMaterialMask* PhysicalMaterialMask;
/** Pointer to material which contains the physical material map */
UMaterialInterface* PhysicalMaterialMap;
};
struct FGeometryAddParams
{
FGeometryAddParams() = default;
FGeometryAddParams(const FGeometryAddParams& Other)
: bDoubleSided(Other.bDoubleSided)
, CollisionData(Other.CollisionData)
, CollisionTraceType(Other.CollisionTraceType)
, Scale(Other.Scale)
, SimpleMaterial(Other.SimpleMaterial)
, ComplexMaterials(Other.ComplexMaterials)
, ComplexMaterialMasks(Other.ComplexMaterialMasks)
, LocalTransform(Other.LocalTransform)
, WorldTransform(Other.WorldTransform)
, Geometry(Other.Geometry)
PRAGMA_DISABLE_DEPRECATION_WARNINGS
, ChaosTriMeshes(Other.ChaosTriMeshes)
PRAGMA_ENABLE_DEPRECATION_WARNINGS
, TriMeshGeometries(Other.TriMeshGeometries)
{}
bool bDoubleSided;
FBodyCollisionData CollisionData;
ECollisionTraceFlag CollisionTraceType;
FVector Scale;
UPhysicalMaterial* SimpleMaterial;
TArrayView<UPhysicalMaterial*> ComplexMaterials;
TArrayView<FPhysicalMaterialMaskParams> ComplexMaterialMasks;
FTransform LocalTransform;
FTransform WorldTransform;
FKAggregateGeom* Geometry;
UE_DEPRECATED(5.4, "Please use TriMeshGeometries instead")
TArrayView<TSharedPtr<Chaos::FTriangleMeshImplicitObject, ESPMode::ThreadSafe>> ChaosTriMeshes;
TArrayView<Chaos::FTriangleMeshImplicitObjectPtr> TriMeshGeometries;
};