Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USkeletalMeshComponent
Description
Instantiates only the bodies given a physics asset, not the constraints. Instead of reading the current component state, this reads the ref-pose from the reference skeleton of the mesh. Useful if trying to create bodies to be used during any evaluation work. The Created bodies are owned by the calling code and must be freed when necessary.
| Name | InstantiatePhysicsAssetBodiesRefPose |
| 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 InstantiatePhysicsAssetBodiesRefPose
(
const UPhysicsAsset & PhysAsset,
TArray < FBodyInstance * > & OutBodies,
FPhysScene * PhysScene,
USkeletalMeshComponent * OwningComponent,
int32 UseRootBodyIndex,
const FPhysicsAggregateHandle & UseAggregate
) const