USkinnedMeshComponent::GetTwistAndSwingAngleOfDeltaRotationFromRefPose

Get Twist and Swing Angle in Degree of Delta Rotation from Reference Pose in Local space

Choose your operating system:

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

bool GetTwistAndSwingAngleOfDeltaRotationFromRefPose
(
    FName BoneName,
    float & OutTwistAngle,
    float & OutSwingAngle
) const

Remarks

Get Twist and Swing Angle in Degree of Delta Rotation from Reference Pose in Local space

First this function gets rotation of current, and rotation of ref pose in local space, and And gets twist/swing angle value from refpose aligned.

Returns

true if succeed. False otherwise. Often due to incorrect bone name.

Parameters

Parameter

Description

BoneName

Name of the bone

OutTwistAngle

TwistAngle in degree

OutSwingAngle

SwingAngle in degree