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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback