Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Data
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGCollisionWrapperData.h |
| Include | #include "Data/PCGCollisionWrapperData.h" |
Syntax
struct FPCGCollisionWrapper
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bInitialized | ||
| TArray< FBodyInstance * > | BodyInstances | ||
| TArray< int32 > | IndexToBodyInstance |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPCGCollisionWrapper
(
const FPCGCollisionWrapper& |
|||
FPCGCollisionWrapper
(
FPCGCollisionWrapper&& Other |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CreateBodyInstances
(
const TArray< FSoftObjectPath >& MeshPaths |
||
| FBodyInstance * | GetBodyInstance
(
int32 EntryIndex |
Retrieves the body instance associated to the entry given by its index. | |
| void | GetShapeArray
(
int32 EntryIndex, |
Retrieves the shape list for a given entry matching the query flag. | |
| bool | GetShapeArray
(
FBodyInstance* BodyInstance, |
Retrieves the shape list for a given body, matching the query flag. Returns false if we selected the other type for the 'SimpleFirst' or 'ComplexFirst' cases. | |
| bool | Initialize
(
const IPCGAttributeAccessor* Accessor, |
Simple API - does both the prepare & create body instances in a single step. | |
| bool | Prepare
(
const IPCGAttributeAccessor* Accessor, |
Advanced API - allows to do async loading as we separate the mesh finding part from the body creation part. | |
| void | Uninitialize () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FPCGCollisionWrapper & | operator=
(
const FPCGCollisionWrapper& |
||
| FPCGCollisionWrapper & | operator=
(
FPCGCollisionWrapper&& Other |