FCSPose

Windows
MacOS
Linux

Syntax

template<class PoseType>
struct FCSPose

Variables

Name Description

Protected variable

TCustomBoneInde...

 

BoneMask

Cached bone mask array to avoid reallocations.

Protected variable

TArray< FCompac...

 

BonesToConvert

Cached conversion array for this pose, to save on allocations each frame.

Protected variable

TCustomBoneInde...

 

ComponentSpaceFlags

Flags to track each bones current state (0 means local pose, 1 means component space pose)

Protected variable

PoseType

 

Pose

Functions

Name Description

Public function

void

 

CalculateComponentSpaceTransform

(
    BoneIndexType BoneIndex
)

Calculate the component space transform for the supplied bone.

Public function

void

 

ConvertBoneToLocalSpace

(
    BoneIndexType BoneIndex
)

Convert Bone to Local Space.

Public function Static

void

 

ConvertComponentPosesToLocalPoses

(
    const FCSPose< PoseType >& InPose,
    PoseType& OutPose
)

Convert any component space transforms back to local space.

Public function Static

void

 

ConvertComponentPosesToLocalPoses

(
    FCSPose< PoseType >&& InPose,
    PoseType& OutPose
)

Convert any component space transforms back to local space.

Public function

void

 

CopyAndAssignBoneContainer

(
    FBoneContainer& NewBoneContainer
)

Public function

void

 

CopyPose

(
    const OtherPoseType& SrcPose
)

Copy Pose.

Public function

void

 

Empty()

Public function Const

const TCusto...

 

GetComponentSpaceFlags()

Public function

const FTrans...

 

GetComponentSpaceTransform

(
    BoneIndexType BoneIndex
)

Get Transform for supplied bone in component space.

Public function

FTransform

 

GetLocalSpaceTransform

(
    BoneIndexType BoneIndex
)

Get transform for supplied bone in local space.

Public function Const

const PoseTy...

 

GetPose()

Public function

void

 

InitPose

(
    const PoseType& SrcPose
)

Init Pose.

Public function

void

 

InitPose

(
    const FBoneContainer* InBoneCo...
)

Init Pose.

Public function

void

 

InitPose

(
    PoseType&& SrcPose
)

Public function

void

 

LocalBlendCSBoneTransforms

(
    const TArray< struct FBoneTransform...,
    float Alpha
)

Blends Component Space transforms to MeshPose in Local Space.

Public function

void

 

SafeSetCSBoneTransforms

(
    const TArray< struct FBoneTransform...
)

Set a bunch of Component Space Bone Transforms.

Public function

void

 

SetComponentSpaceTransform

(
    BoneIndexType BoneIndex,
    const FTransform& NewTransform
)

Set the transform for the supplied bone.

Typedefs

Name

Description

BoneIndexType

Set up our index type based on the type of pose we are manipulating.

References

Module

Engine

Header

Runtime/Engine/Public/BonePose.h

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