Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Physics
References
Module | ModelingComponents |
Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Physics/PhysicsDataCollection.h |
Include | #include "Physics/PhysicsDataCollection.h" |
Syntax
class FPhysicsDataCollection
Remarks
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.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FKAggregateGeom | AggGeom | Collision geometry in Physics-system format. Not necessarily in sync with Geometry member. |
![]() |
TWeakObjectPtr< const UBodySetup > | BodySetup | The BodySetup in use by the SourceComponent |
![]() |
FVector | ExternalScale3D | Scaling factor applied to the SourceComponent, which should be transferred to Collision Geometry in some cases |
![]() |
UE::Geometry::FSimpleShapeSet3d | Geometry | Geometry data Stores representation of Collision geometry |
![]() |
TWeakObjectPtr< const UActorComponent > | SourceComponent | External State DataThe Component this physics data came from / is for |
![]() |
TWeakObjectPtr< const UStaticMesh > | SourceStaticMesh | The StaticMesh this physics data came from / is for |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Empty out our FKAggregateGeom | |
![]() |
void | CopyGeometryFromExisting
(
const FPhysicsDataCollection& Other |
Replace our geometry data with that from another FPhysicsDataCollection |
![]() |
void | Populate our FKAggregateGeom from our FSimpleShapeSet3d | |
![]() |
void | InitializeFromComponent
(
const UActorComponent* Component, |
Initialize from the given Component, and optionally initialize internal geometry members |
![]() |
void | InitializeFromExisting
(
const FPhysicsDataCollection& Other |
Initialize |
![]() |
void | InitializeFromStaticMesh
(
const UStaticMesh* StaticMesh, |
Initialize from the given StaticMesh, and optionally initialize internal geometry members |