USkeletalMeshSocket::InitializeSocketFromLocation

Sets BoneName, RelativeLocation and RelativeRotation based on closest bone to WorldLocation and WorldNormal

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/SkeletalMeshSocket.h

Include

#include "Engine/SkeletalMeshSocket.h"

Source

/Engine/Source/Runtime/Engine/Private/SkeletalMesh.cpp

Syntax

void InitializeSocketFromLocation
(
    const class USkeletalMeshComponent * SkelComp,
    FVector WorldLocation,
    FVector WorldNormal
)

Remarks

Sets BoneName, RelativeLocation and RelativeRotation based on closest bone to WorldLocation and WorldNormal