Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USkeletalMeshComponent
Description
Instantiates only the bodies given a physics asset, not the constraints. The Created bodies are owned by the calling code and must be freed when necessary.
| Name | InstantiatePhysicsAssetBodies |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h |
| Include Path | #include "Components/SkeletalMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SkeletalMeshComponentPhysics.cpp |
void InstantiatePhysicsAssetBodies
(
const UPhysicsAsset & PhysAsset,
TArray < FBodyInstance * > & OutBodies,
FPhysScene * PhysScene,
USkeletalMeshComponent * OwningComponent,
int32 UseRootBodyIndex,
const FPhysicsAggregateHandle & UseAggregate
) const