Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Physics/PhysicsDataCollection.h |
Include |
#include "Physics/PhysicsDataCollection.h" |
class FPhysicsDataCollection
FPhysicsDataCollection holds onto physics-system data that is needed for various interactive tools and algorithms. Currently this is split into two parts, pointers to the owning physics state, and collision geometry data.
The collision geometry data is stored in both the editable GeometryProcessing format and the physics-system representations (currently FKAggregateGeom but more are expected). This class provides a high-level API for transferring geometry between these two representations.
Name | Description | ||
---|---|---|---|
|
AggGeom |
Collision geometry in Physics-system format. Not necessarily in sync with Geometry member. |
|
|
TWeakObjectPtr<... |
BodySetup |
The BodySetup in use by the SourceComponent |
|
ExternalScale3D |
Scaling factor applied to the SourceComponent, which should be transferred to Collision Geometry in some cases |
|
|
Geometry |
Geometry data Stores representation of Collision geometry |
|
|
TWeakObjectPtr<... |
SourceComponent |
External State DataThe Component this physics data came from / is for |
|
TWeakObjectPtr<... |
SourceStaticMesh |
The StaticMesh this physics data came from / is for |
Name | Description | ||
---|---|---|---|
|
ClearAggregate() |
Empty out our FKAggregateGeom |
|
|
CopyGeometryFromExisting ( |
Replace our geometry data with that from another FPhysicsDataCollection |
|
|
CopyGeometryToAggregate() |
Populate our FKAggregateGeom from our FSimpleShapeSet3d |
|
|
InitializeFromComponent ( |
Initialize from the given Component, and optionally initialize internal geometry members |
|
|
InitializeFromExisting ( |
Initialize |
|
|
InitializeFromStaticMesh ( |
Initialize from the given StaticMesh, and optionally initialize internal geometry members |