Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/USkeletalMeshComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h |
| Include | #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
Remarks
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.