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

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