USkinnedMeshComponent::FindClosestBone

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
(
    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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss