FPhysicsAssetUtils::CreateCollisionFromBones

Replaces any collision already in the BodySetup with an auto-generated one using the parameters provided.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/PhysicsAssetUtils.h

Include

#include "PhysicsAssetUtils.h"

Syntax

namespace FPhysicsAssetUtils
{
    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

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback