UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ChaosEventType.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "PhysicsPublic.h"
6#include "Math/MathFwd.h"
7
8#include "ChaosEventType.generated.h"
9
10
11namespace Chaos
12{
13 struct FBreakingData;
14 struct FCollidingData;
15}
16
17USTRUCT(BlueprintType)
19{
21
22public:
24
25 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
27
28 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
29 FVector DeltaVelocity;
30
31 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
33
34 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
35 float Mass;
36
37 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
38 TObjectPtr<class UPhysicalMaterial> PhysMaterial;
39
40 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
41 TWeakObjectPtr<UPrimitiveComponent> Component;
42
43 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
44 int32 BodyIndex;
45
46 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
47 FName BoneName;
48};
49
50
51
52USTRUCT(BlueprintType)
54{
56
57public:
60
61 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
62 FVector Location;
63
64 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
65 FVector AccumulatedImpulse;
66
67 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
69
70 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
71 float PenetrationDepth;
72
73 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
75
76 UPROPERTY(BlueprintReadOnly, Category = "Collision Event")
78
79};
80
81
82USTRUCT(BlueprintType)
84{
86
87public:
88
91
93 UPROPERTY(BlueprintReadOnly, Category = "Break Event")
94 TObjectPtr<UPrimitiveComponent> Component = nullptr;
95
97 UPROPERTY(BlueprintReadOnly, Category = "Break Event")
98 FVector Location;
99
101 UPROPERTY(BlueprintReadOnly, Category = "Break Event")
103
105 UPROPERTY(BlueprintReadOnly, Category = "Break Event")
107
109 UPROPERTY(BlueprintReadOnly, Category = "Break Event")
111
113 UPROPERTY(BlueprintReadOnly, Category = "Break Event")
114 FVector Extents;
115
117 UPROPERTY(BlueprintReadOnly, Category = "Break Event")
118 float Mass;
119
121 UPROPERTY(BlueprintReadOnly, Category = "Break Event")
123
125 UPROPERTY(BlueprintReadOnly, Category = "Break Event")
126 bool bFromCrumble;
127};
128
129USTRUCT(BlueprintType)
131{
133
134public:
135
137
138 UPROPERTY(BlueprintReadOnly, Category = "Removal Event")
139 TObjectPtr<UPrimitiveComponent> Component = nullptr;
140
141 UPROPERTY(BlueprintReadOnly, Category = "Removal Event")
142 FVector Location;
143
144 UPROPERTY(BlueprintReadOnly, Category = "Removal Event")
145 float Mass;
146};
147
148
149USTRUCT(BlueprintType)
151{
153
154public:
156 : Component(nullptr)
157 , Location(FVector::ZeroVector)
158 , Orientation(FQuat::Identity)
159 , LinearVelocity(FVector::ZeroVector)
160 , AngularVelocity(FVector::ZeroVector)
161 , Mass(0)
162 , LocalBounds(ForceInitToZero)
163 {}
164
166 UPROPERTY(BlueprintReadOnly, Category = "Crumble Event")
167 TObjectPtr<UPrimitiveComponent> Component = nullptr;
168
170 UPROPERTY(BlueprintReadOnly, Category = "Crumble Event")
171 FVector Location;
172
174 UPROPERTY(BlueprintReadOnly, Category = "Crumble Event")
176
178 UPROPERTY(BlueprintReadOnly, Category = "Crumble Event")
180
182 UPROPERTY(BlueprintReadOnly, Category = "Crumble Event")
184
186 UPROPERTY(BlueprintReadOnly, Category = "Crumble Event")
187 float Mass;
188
190 UPROPERTY(BlueprintReadOnly, Category = "Crumble Event")
191 FBox LocalBounds;
192
194 UPROPERTY(BlueprintReadOnly, Category = "Crumble Event")
195 TArray<int32> Children;
196};
197
198
199
@ Normal
Definition AndroidInputInterface.h:116
@ ForceInitToZero
Definition CoreMiscDefines.h:156
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
Definition NameTypes.h:617
Definition Array.h:670
Definition PhysicalMaterial.h:104
Definition SkeletalMeshComponent.h:307
U16 Index
Definition radfft.cpp:71
Definition ExternalCollisionData.h:213
Definition ExternalCollisionData.h:57
Definition ChaosEventType.h:84
Definition ChaosEventType.h:151
FChaosCrumblingEvent()
Definition ChaosEventType.h:155
Definition ChaosEventType.h:131
Definition ChaosEventType.h:19
Definition ChaosEventType.h:54
Definition ObjectPtr.h:488
Definition WeakObjectPtrTemplates.h:25