USkinnedMeshComponent::TransformToBoneSpace

Transform a location/rotation from world space to bone relative space.

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

void TransformToBoneSpace
(
    FName BoneName,
    FVector InPosition,
    FRotator InRotation,
    FVector & OutPosition,
    FRotator & OutRotation
) const

Remarks

Transform a location/rotation from world space to bone relative space. This is handy if you know the location in world space for a bone attachment, as AttachComponent takes location/rotation in bone-relative space.

Parameters

Parameter

Description

BoneName

Name of bone

InPosition

Input position

InRotation

Input rotation

OutPosition

(out) Transformed position

OutRotation

(out) Transformed rotation

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