UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ExternalPhysicsCustomObjectVersion.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreTypes.h"
5#include "Misc/Guid.h"
6
7// Custom serialization version for changes made in Fortnite-Dev-Physics stream
9{
10 enum Type
11 {
12 // Before any version changes were made
14
15 // Format change, Removed Convex Hulls From Triangle Mesh Implicit Object
17
18 // Add serialization for particle bounds
20
21 // Add BV serialization for evolution
23
24 // Allow evolution to swap acceleration structures
26
27 //Global elements have bounds so we can skip them
29
30 //SpatialIdx serialized
32
33 //Save out heightfield data
35
36 //Save out multiple acceleration structures
38
39 // Add kinematic targets to TKinematicGeometryParticles
41
42 // Allow trimeshes to serialize their acceleration structure
44
45 // Serialize broadphase type
47
48 // Allow scaled geometry to be a concrete type
50
51 // Trimeshes serialize AABBTree
53
54 // Adds Serialization of HashResult, and separates delete/update TAccelerationStructureHandle in FPendingSpatialData
56
57 // Only serialize internal acceleration structure queue and acceleration structure. No external/Async queues.
59
60 // Serialize world space bounds of TPerShapeData
62
63 // Add an SOA which contains particles with full dynamic data but which are in the kinematic object state.
65
66 // Added material manager to Chaos
68
69 // Added material indices to trimesh collision data
71
72 // Add center of mass and volume cached calculations to TConvex
74
75 // Add mass transform data to kinematic particle
77
78 // Added ability to remove shapes from collision resolution (will not construct constraints when one or more shapes removed)
80
81 //Heightfield cell bounds are implicit
83
84 // Add damping to rigid particles
86
87 //Replace TBox with TAABB in many places
89
90 // Serialize bSimulate on PerShapeData
92
93 // Serialize whether or not an AABBTree is immutable
95
96 // Trimeshes can now use small indices
98
99 // Union objects can avoid allocating a full hierarchy
101
102 // Capsules no longer have a union inside them or stored aabbs
104
105 // Convexes use concrete planes
107
108 // Heightfield uses uint16 heights directly
110
111 // TriangleMesh has map from internal face indices to external.
113
114 // Acceleration structures use unique payload idx
116
117 // Added serialization for the collision type in the shape
119
120 // Force rebuild of indices in BodySetup
122
123 // Added serialization for the physics material sleep counter threshold
125
126 // Added ability to remove shapes from sim and/or query separately
128
129 // Remove extra representations of per shape sim and query enabled flags
131
132 // Removed unused full bounds from AABBTree
134
135 // Added one-way interaction flag
137
138 // -----<new versions can be added above this line>-------------------------------------------------
141 };
142
143 // The GUID for this custom version number
144 CORE_API const static FGuid GUID;
145
146private:
148};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition ExternalPhysicsCustomObjectVersion.h:9
CORE_API static const FGuid GUID
Definition ExternalPhysicsCustomObjectVersion.h:144
Type
Definition ExternalPhysicsCustomObjectVersion.h:11
@ AddConvexCenterOfMassAndVolume
Definition ExternalPhysicsCustomObjectVersion.h:73
@ SerializeMultiStructures
Definition ExternalPhysicsCustomObjectVersion.h:37
@ SerializeShapeWorldSpaceBounds
Definition ExternalPhysicsCustomObjectVersion.h:61
@ CapsulesNoUnionOrAABBs
Definition ExternalPhysicsCustomObjectVersion.h:103
@ AddDampingToRigids
Definition ExternalPhysicsCustomObjectVersion.h:85
@ SerializeBroadphaseType
Definition ExternalPhysicsCustomObjectVersion.h:46
@ HeightfieldData
Definition ExternalPhysicsCustomObjectVersion.h:34
@ AddShapeCollisionDisable
Definition ExternalPhysicsCustomObjectVersion.h:79
@ HeightfieldImplicitBounds
Definition ExternalPhysicsCustomObjectVersion.h:82
@ SpatialIdxSerialized
Definition ExternalPhysicsCustomObjectVersion.h:31
@ SerializeCollisionTraceType
Definition ExternalPhysicsCustomObjectVersion.h:118
@ ConvexUsesTPlaneConcrete
Definition ExternalPhysicsCustomObjectVersion.h:106
@ GlobalElementsHaveBounds
Definition ExternalPhysicsCustomObjectVersion.h:28
@ SerializeEvolutionBV
Definition ExternalPhysicsCustomObjectVersion.h:22
@ ImmutableAABBTree
Definition ExternalPhysicsCustomObjectVersion.h:94
@ AddDynamicKinematicSOA
Definition ExternalPhysicsCustomObjectVersion.h:64
@ HeightfieldUsesHeightsDirectly
Definition ExternalPhysicsCustomObjectVersion.h:109
@ RemovedAABBTreeFullBounds
Definition ExternalPhysicsCustomObjectVersion.h:133
@ UnionObjectsCanAvoidHierarchy
Definition ExternalPhysicsCustomObjectVersion.h:100
@ SerializeEvolutionGenericAcceleration
Definition ExternalPhysicsCustomObjectVersion.h:25
@ AddTrimeshMaterialIndices
Definition ExternalPhysicsCustomObjectVersion.h:70
@ RemovedConvexHullsFromTriangleMeshImplicitObject
Definition ExternalPhysicsCustomObjectVersion.h:16
@ TrimeshSerializesAABBTree
Definition ExternalPhysicsCustomObjectVersion.h:52
@ AddShapeSimAndQueryCollisionEnabled
Definition ExternalPhysicsCustomObjectVersion.h:127
@ TriangleMeshHasFaceIndexMap
Definition ExternalPhysicsCustomObjectVersion.h:112
@ KinematicCentersOfMass
Definition ExternalPhysicsCustomObjectVersion.h:76
@ SerializeHashResult
Definition ExternalPhysicsCustomObjectVersion.h:55
@ UniquePayloadIdx
Definition ExternalPhysicsCustomObjectVersion.h:115
@ FlushEvolutionInternalAccelerationQueue
Definition ExternalPhysicsCustomObjectVersion.h:58
@ TrimeshSerializesBV
Definition ExternalPhysicsCustomObjectVersion.h:43
@ KinematicTargets
Definition ExternalPhysicsCustomObjectVersion.h:40
@ TBoxReplacedWithTAABB
Definition ExternalPhysicsCustomObjectVersion.h:88
@ ScaledGeometryIsConcrete
Definition ExternalPhysicsCustomObjectVersion.h:49
@ RemoveShapeSimAndQueryDuplicateRepresentations
Definition ExternalPhysicsCustomObjectVersion.h:130
@ TrimeshCanUseSmallIndices
Definition ExternalPhysicsCustomObjectVersion.h:97
@ PhysicsMaterialSleepCounterThreshold
Definition ExternalPhysicsCustomObjectVersion.h:124
@ SerializeParticleBounds
Definition ExternalPhysicsCustomObjectVersion.h:19
@ VersionPlusOne
Definition ExternalPhysicsCustomObjectVersion.h:139
@ AddOneWayInteraction
Definition ExternalPhysicsCustomObjectVersion.h:136
@ SerializePerShapeDataSimulateFlag
Definition ExternalPhysicsCustomObjectVersion.h:91
@ AddedMaterialManager
Definition ExternalPhysicsCustomObjectVersion.h:67
@ LatestVersion
Definition ExternalPhysicsCustomObjectVersion.h:140
@ BeforeCustomVersionWasAdded
Definition ExternalPhysicsCustomObjectVersion.h:13
@ ForceRebuildBodySetupIndices
Definition ExternalPhysicsCustomObjectVersion.h:121
Definition Guid.h:109