USkinnedMeshComponent::FindClosestBone_K2

Finds the closest bone to the given location

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/SkinnedMeshComponent.h

Include

#include "Components/SkinnedMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/SkinnedMeshComponent.cpp

Syntax

FName FindClosestBone_K2
(
    FVector TestLocation,
    FVector & BoneLocation,
    float IgnoreScale,
    bool bRequirePhysicsAsset
) const

Remarks

Finds the closest bone to the given location

Returns

the name of the bone that was found, or 'None' if no bone was found

Parameters

Parameter

Description

TestLocation

the location to test against

BoneLocation

(optional, out) if specified, set to the world space location of the bone that was found, or (0,0,0) if no bone was found

IgnoreScale

(optional) if specified, only bones with scaling larger than the specified factor are considered

bRequirePhysicsAsset

(optional) if true, only bones with physics will be considered

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