Navigation
Unreal Engine C++ API Reference > Developer > PhysicsUtilities
References
Module | PhysicsUtilities |
Header | /Engine/Source/Developer/PhysicsUtilities/Public/PhysicsAssetUtils.h |
Include | #include "PhysicsAssetUtils.h" |
namespace FPhysicsAssetUtils { bool FPhysicsAssetUtils::CreateCollisionFromBones ( [UBodySetup](API\Runtime\Engine\PhysicsEngine\UBodySetup) * bs, [USkeletalMesh](API\Runtime\Engine\Engine\USkeletalMesh) * skelMesh, const [TArray](API\Runtime\Core\Containers\TArray)< int32 > & BoneIndices, [FPhysAssetCreateParams](API\Developer\PhysicsUtilities\FPhysAssetCreateParams) & Params, const [FBoneVertInfo](API\Runtime\MeshUtilitiesCommon\FBoneVertInfo) & Info ) }
Remarks
Replaces any collision already in the BodySetup with an auto-generated one using the parameters provided. Returns true if successfully created collision from all specified bones
Parameters
Name | Description |
---|---|
bs | BodySetup to create the collision for |
skelMesh | The SkeletalMesh we create collision for |
BoneIndices | Indices of the bones the collisions are created for |
Params | Additional parameters to control the creation |
Info | The vertices to create the collision for |