Language:
Discover
By Skill Level
By Category

FPhysicsAssetUtils::CreateCollisionFromBones

Choose your OS:

Syntax

namespace FPhysicsAssetUtils
{
    [UNREALED_API](API\Editor\UnrealEd\Commandlets\UNREALED_API_2) bool FPhysicsAssetUtils::CreateCollisionFromBones
    (
        UBodySetup * bs,
        USkeletalMesh * skelMesh,
        const TArray < int32 > & BoneIndices,
        FPhysAssetCreateParams & Params,
        const 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

Returns

Returns true if successfully created collision from all specified bones

Parameters

Parameter

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

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/PhysicsAssetUtils.h