FPhysicsDataCollection

[FPhysicsDataCollection](API\Plugins\ModelingComponents\Physics\FPhysicsDataCollection) holds onto physics-system data that is needed for various interactive tools and algorithms.

Windows
MacOS
Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/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

Name Description

Public variable

FKAggregateGeom

 

AggGeom

Collision geometry in Physics-system format. Not necessarily in sync with Geometry member.

Public variable

TWeakObjectPtr<...

 

BodySetup

The BodySetup in use by the SourceComponent

Public variable

FVector

 

ExternalScale3D

Scaling factor applied to the SourceComponent, which should be transferred to Collision Geometry in some cases

Public variable

FSimpleShapeSet...

 

Geometry

Geometry data Stores representation of Collision geometry

Public variable

TWeakObjectPtr<...

 

SourceComponent

External State DataThe Component this physics data came from / is for

Functions

Name Description

Public function

void

 

ClearAggregate()

Empty out our FKAggregateGeom

Public function

void

 

CopyGeometryFromExisting

(
    const FPhysicsDataCollection& Othe...
)

Replace our geometry data with that from another FPhysicsDataCollection

Public function

void

 

CopyGeometryToAggregate()

Populate our FKAggregateGeom from our FSimpleShapeSet3d

Public function

void

 

InitializeFromComponent

(
    const UActorComponent* Compone...,
    bool bInitializeAggGeom
)

Initialize from the given Component, and optionally initialize internal geometry members

Public function

void

 

InitializeFromExisting

(
    const FPhysicsDataCollection& Othe...
)

Initialize

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss