engine
 
载入中...
搜索中...
未找到
Public 类型 | 静态 Public 成员函数 | 所有成员列表
FAnimationRuntime类 参考

In AnimationRunTime Library, we extract animation data based on Skeleton hierarchy, not ref pose hierarchy. 更多...

#include <AnimationRuntime.h>

Public 类型

enum class  EBlendPosesPerBoneFilterFlags : uint32 { }
 Blending flags for BlendPosesPerBoneFilter 更多...
 

静态 Public 成员函数

static void AccumulateAdditivePose (FCompactPose &BasePose, const FCompactPose &AdditivePose, FBlendedCurve &BaseCurve, const FBlendedCurve &AdditiveCurve, float Weight, enum EAdditiveAnimationType AdditiveType)
 Accumulate Additive Pose based on AdditiveType
 
static void AccumulateLocalSpaceAdditivePose (FCompactPose &BasePose, const FCompactPose &AdditivePose, FBlendedCurve &BaseCurve, const FBlendedCurve &AdditiveCurve, float Weight)
 Accumulates weighted AdditivePose to BasePose. 更多...
 
static void AccumulateMeshSpaceRotationAdditiveToLocalPose (FCompactPose &BasePose, const FCompactPose &MeshSpaceRotationAdditive, FBlendedCurve &BaseCurve, const FBlendedCurve &AdditiveCurve, float Weight)
 Accumulate a MeshSpaceRotation Additive pose to a local pose. 更多...
 
static ETypeAdvanceAnim AdvanceTime (const bool &bAllowLooping, const float &MoveDelta, float &InOutTime, const float &EndTime)
 Advance CurrentTime to CurrentTime + MoveDelta. 更多...
 
static void AppendActiveMorphTargets (const USkeletalMesh *InSkeletalMesh, const TMap< FName, float > &InMorphCurveAnims, TArray< FActiveMorphTarget > &InOutActiveMorphTargets, TArray< float > &InOutMorphTargetWeights)
 Combine CurveKeys (that reference morph targets by name) and ActiveAnims (that reference morphs by reference) into the ActiveMorphTargets array.
 
static void ApplyWeightToTransform (const FBoneContainer &RequiredBones, FTransformArrayA2 &Atoms, float Weight)
 Apply Weight to the Transform Atoms = Weight * Atoms at the end
 
static void BlendPosesPerBoneFilter (FCompactPose &BasePose, const TArray< FCompactPose > &BlendPoses, FBlendedCurve &BaseCurve, const TArray< FBlendedCurve > &BlendCurves, FCompactPose &OutPose, FBlendedCurve &OutCurve, TArray< FPerBoneBlendWeight > &BoneBlendWeights, EBlendPosesPerBoneFilterFlags blendFlags, enum ECurveBlendOption::Type CurveBlendOption)
 Blend Poses per bone weights : The BasePoses + BlendPoses(SourceIndex) * Blend Weights(BoneIndex) Please note BlendWeights are array, so you can define per bone base This supports multi per bone blending, but only one pose as blend at a time per track PerBoneBlendWeights.Num() == Atoms.Num() 更多...
 
static void BlendPosesTogether (TArrayView< const FCompactPose > SourcePoses, TArrayView< const FBlendedCurve > SourceCurves, TArrayView< const float > SourceWeights, FCompactPose &ResultPose, FBlendedCurve &ResultCurve)
 Blends together a set of poses, each with a given weight. 更多...
 
static void BlendPosesTogether (TArrayView< const FCompactPose > SourcePoses, TArrayView< const FBlendedCurve > SourceCurves, TArrayView< const float > SourceWeights, TArrayView< const int32 > SourceWeightsIndices, FCompactPose &ResultPose, FBlendedCurve &ResultCurve)
 Blends together a set of poses, each with a given weight. 更多...
 
static void BlendPosesTogetherIndirect (TArrayView< const FCompactPose *const > SourcePoses, TArrayView< const FBlendedCurve *const > SourceCurves, TArrayView< const float > SourceWeights, FCompactPose &ResultPose, FBlendedCurve &ResultCurve)
 Blends together a set of poses, each with a given weight. 更多...
 
static void BlendPosesTogetherPerBone (TArrayView< const FCompactPose > SourcePoses, TArrayView< const FBlendedCurve > SourceCurves, const IInterpolationIndexProvider *InterpolationIndexProvider, TArrayView< const FBlendSampleData > BlendSampleDataCache, FCompactPose &ResultPose, FBlendedCurve &ResultCurve)
 Blends together a set of poses, each with a given weight. 更多...
 
static void BlendPosesTogetherPerBone (TArrayView< const FCompactPose > SourcePoses, TArrayView< const FBlendedCurve > SourceCurves, const IInterpolationIndexProvider *InterpolationIndexProvider, TArrayView< const FBlendSampleData > BlendSampleDataCache, TArrayView< const int32 > BlendSampleDataCacheIndices, FCompactPose &ResultPose, FBlendedCurve &ResultCurve)
 Blends together a set of poses, each with a given weight. 更多...
 
static void BlendPosesTogetherPerBoneInMeshSpace (TArrayView< FCompactPose > SourcePoses, TArrayView< const FBlendedCurve > SourceCurves, const UBlendSpaceBase *BlendSpace, TArrayView< const FBlendSampleData > BlendSampleDataCache, FCompactPose &ResultPose, FBlendedCurve &ResultCurve)
 Blends together a set of poses, each with a given weight. 更多...
 
static void BlendTransformsByWeight (FTransform &OutTransform, const TArray< FTransform > &Transforms, const TArray< float > &Weights)
 Blend Array of Transforms by weight 更多...
 
static void BlendTwoPosesTogether (const FCompactPose &SourcePose1, const FCompactPose &SourcePose2, const FBlendedCurve &SourceCurve1, const FBlendedCurve &SourceCurve2, const float WeightOfPose1, FCompactPose &ResultPose, FBlendedCurve &ResultCurve)
 Blends together two poses. 更多...
 
static void BlendTwoPosesTogetherPerBone (const FCompactPose &SourcePose1, const FCompactPose &SourcePose2, const FBlendedCurve &SourceCurve1, const FBlendedCurve &SourceCurve2, const TArray< float > &WeightsOfSource2, FCompactPose &ResultPose, FBlendedCurve &ResultCurve)
 Blends together a set of poses, each with a given weight. 更多...
 
static void ConvertBoneSpaceTransformToCS (const FTransform &ComponentTransform, FCSPose< FCompactPose > &MeshBases, FTransform &InOutBoneSpaceTM, FCompactPoseBoneIndex BoneIndex, EBoneControlSpace Space)
 Convert a FTransform in a specified bone space to ComponentSpace. 更多...
 
static void ConvertCSTransformToBoneSpace (const FTransform &ComponentTransform, FCSPose< FCompactPose > &MeshBases, FTransform &InOutCSBoneTM, FCompactPoseBoneIndex BoneIndex, EBoneControlSpace Space)
 Convert a ComponentSpace FTransform to specified bone space. 更多...
 
static void ConvertMeshRotationPoseToLocalSpace (FCompactPose &Pose)
 Convert a MeshSpaceRotation pose to Local Space. 更多...
 
static void ConvertPoseToAdditive (FCompactPose &TargetPose, const FCompactPose &BasePose)
 Convert TargetPose into an AdditivePose, by doing TargetPose = TargetPose - BasePose
 
static void ConvertPoseToMeshRotation (FCompactPose &LocalPose)
 Convert LocalPose into MeshSpaceRotations. 更多...
 
static void ConvertPoseToMeshSpace (const TArray< FTransform > &LocalTransforms, TArray< FTransform > &MeshSpaceTransforms, const FBoneContainer &RequiredBones)
 Convert LocalTransforms into MeshSpaceTransforms over RequiredBones.
 
static void ConvertTransformToAdditive (FTransform &TargetTrasnform, const FTransform &BaseTransform)
 convert transform to additive
 
static void CreateMaskWeights (TArray< FPerBoneBlendWeight > &BoneBlendWeights, const TArray< FInputBlendPose > &BlendFilters, const USkeleton *Skeleton)
 Create Mast Weight for skeleton joints, not per mesh or per required bones You'll have to filter properly with correct mesh joint or required boens The depth should not change based on LOD or mesh or skeleton They still should contain same depth
 
static void EnsureParentsPresent (TArray< FBoneIndexType > &BoneIndices, const FReferenceSkeleton &RefSkeleton)
 Utility for taking an array of bone indices and ensuring that all parents are present (ie. 更多...
 
static void FillWithRefPose (TArray< FTransform > &OutAtoms, const FBoneContainer &RequiredBones)
 Fill ref pose
 
static FTransform GetComponentSpaceRefPose (const FCompactPoseBoneIndex &CompactPoseBoneIndex, const FBoneContainer &BoneContainer)
 Get Reference Component Space Transform
 
static const FTransform & GetComponentSpaceTransformWithCache (const FReferenceSkeleton &InRefSkeleton, const TArray< FTransform > &InBoneSpaceTransforms, int32 BoneIndex, TArray< FTransform > &CachedTransforms, TArray< bool > &CachedTransformReady)
 Calculate the component-space bone transform for the specified bone. 更多...
 
static void GetKeyIndicesFromTime (int32 &OutKeyIndex1, int32 &OutKeyIndex2, float &OutAlpha, const float Time, const int32 NumFrames, const float SequenceLength)
 Get Key Indices (start/end with alpha from start) with input parameter Time, NumFrames from % from StartKeyIndex, meaning (CurrentKeyIndex(float)-StartKeyIndex)/(EndKeyIndex-StartKeyIndex) by this Start-End, it will be between 0-(NumFrames-1), not number of Pos/Rot key tracks
 
static int32 GetStringDistance (const FString &First, const FString &Second)
 Calculate distance how close two strings are. 更多...
 
static void LerpBoneTransforms (TArray< FTransform > &A, const TArray< FTransform > &B, float Alpha, const TArray< FBoneIndexType > &RequiredBonesArray)
 Lerp for BoneTransforms. 更多...
 
static void LerpPoses (FCompactPose &PoseA, const FCompactPose &PoseB, FBlendedCurve &CurveA, const FBlendedCurve &CurveB, float Alpha)
 Lerp for FCompactPose. 更多...
 
static void LerpPosesPerBone (FCompactPose &PoseA, const FCompactPose &PoseB, FBlendedCurve &CurveA, const FBlendedCurve &CurveB, float Alpha, const TArray< float > &PerBoneWeights)
 Lerp for FCompactPose. 更多...
 
static void LerpPosesWithBoneIndexList (FCompactPose &PoseA, const FCompactPose &PoseB, FBlendedCurve &CurveA, const FBlendedCurve &CurveB, float Alpha, const TArray< FCompactPoseBoneIndex > &BoneIndices)
 Lerp for FCompactPose. 更多...
 
static void RetargetBoneTransform (const USkeleton *MySkeleton, const FName &RetargetSource, FTransform &BoneTransform, const int32 SkeletonBoneIndex, const FCompactPoseBoneIndex &BoneIndex, const FBoneContainer &RequiredBones, const bool bIsBakedAdditive)
 Retarget a single bone transform, to apply right after extraction. 更多...
 

详细描述

In AnimationRunTime Library, we extract animation data based on Skeleton hierarchy, not ref pose hierarchy.

Ref pose will need to be re-mapped later

成员枚举类型说明

◆ EBlendPosesPerBoneFilterFlags

Blending flags for BlendPosesPerBoneFilter

枚举值
MeshSpaceScale 

Blend bone rotations in mesh space instead of local space

成员函数说明

◆ AccumulateLocalSpaceAdditivePose()

static void FAnimationRuntime::AccumulateLocalSpaceAdditivePose ( FCompactPose &  BasePose,
const FCompactPose &  AdditivePose,
FBlendedCurve &  BaseCurve,
const FBlendedCurve &  AdditiveCurve,
float  Weight 
)
static

Accumulates weighted AdditivePose to BasePose.

Rotations are NOT normalized.

◆ AccumulateMeshSpaceRotationAdditiveToLocalPose()

static void FAnimationRuntime::AccumulateMeshSpaceRotationAdditiveToLocalPose ( FCompactPose &  BasePose,
const FCompactPose &  MeshSpaceRotationAdditive,
FBlendedCurve &  BaseCurve,
const FBlendedCurve &  AdditiveCurve,
float  Weight 
)
static

Accumulate a MeshSpaceRotation Additive pose to a local pose.

Rotations are NOT normalized

◆ AdvanceTime()

static ETypeAdvanceAnim FAnimationRuntime::AdvanceTime ( const bool &  bAllowLooping,
const float &  MoveDelta,
float &  InOutTime,
const float &  EndTime 
)
static

Advance CurrentTime to CurrentTime + MoveDelta.

It will handle wrapping if bAllowLooping is true

return ETypeAdvanceAnim type

◆ BlendPosesPerBoneFilter()

static void FAnimationRuntime::BlendPosesPerBoneFilter ( FCompactPose &  BasePose,
const TArray< FCompactPose > &  BlendPoses,
FBlendedCurve &  BaseCurve,
const TArray< FBlendedCurve > &  BlendCurves,
FCompactPose &  OutPose,
FBlendedCurve &  OutCurve,
TArray< FPerBoneBlendWeight > &  BoneBlendWeights,
EBlendPosesPerBoneFilterFlags  blendFlags,
enum ECurveBlendOption::Type  CurveBlendOption 
)
static

Blend Poses per bone weights : The BasePoses + BlendPoses(SourceIndex) * Blend Weights(BoneIndex) Please note BlendWeights are array, so you can define per bone base This supports multi per bone blending, but only one pose as blend at a time per track PerBoneBlendWeights.Num() == Atoms.Num()

注解
: This optionally blends rotation and/or scale in mesh space. Translation is always in local space.

I had multiple debates about having PerBoneBlendWeights array(for memory reasons), but it so much simplifies multiple purpose for this function instead of searching bonenames or having multiple bone names with multiple weights, and filtering through which one is correct one I assume all those things should be determined before coming here and this only cares about weights

◆ BlendPosesTogether() [1/2]

static void FAnimationRuntime::BlendPosesTogether ( TArrayView< const FCompactPose >  SourcePoses,
TArrayView< const FBlendedCurve >  SourceCurves,
TArrayView< const float >  SourceWeights,
FCompactPose &  ResultPose,
FBlendedCurve &  ResultCurve 
)
static

Blends together a set of poses, each with a given weight.

This function is lightweight, it does not cull out nearly zero weights or check to make sure weights sum to 1.0, the caller should take care of that if needed.

The blend is done by taking a weighted sum of each atom, and re-normalizing the quaternion part at the end, not using SLERP. This allows n-way blends, and makes the code much faster, though the angular velocity will not be constant across the blend.

参数
ResultPoseOutput pose of relative bone transforms.

◆ BlendPosesTogether() [2/2]

static void FAnimationRuntime::BlendPosesTogether ( TArrayView< const FCompactPose >  SourcePoses,
TArrayView< const FBlendedCurve >  SourceCurves,
TArrayView< const float >  SourceWeights,
TArrayView< const int32 >  SourceWeightsIndices,
FCompactPose &  ResultPose,
FBlendedCurve &  ResultCurve 
)
static

Blends together a set of poses, each with a given weight.

This function is lightweight, it does not cull out nearly zero weights or check to make sure weights sum to 1.0, the caller should take care of that if needed.

The blend is done by taking a weighted sum of each atom, and re-normalizing the quaternion part at the end, not using SLERP. This allows n-way blends, and makes the code much faster, though the angular velocity will not be constant across the blend.

SourceWeightsIndices is used to index SourceWeights, to prevent caller having to supply an ordered weights array

参数
ResultPoseOutput pose of relative bone transforms.

◆ BlendPosesTogetherIndirect()

static void FAnimationRuntime::BlendPosesTogetherIndirect ( TArrayView< const FCompactPose *const >  SourcePoses,
TArrayView< const FBlendedCurve *const >  SourceCurves,
TArrayView< const float >  SourceWeights,
FCompactPose &  ResultPose,
FBlendedCurve &  ResultCurve 
)
static

Blends together a set of poses, each with a given weight.

This function is lightweight, it does not cull out nearly zero weights or check to make sure weights sum to 1.0, the caller should take care of that if needed.

The blend is done by taking a weighted sum of each atom, and re-normalizing the quaternion part at the end, not using SLERP. This allows n-way blends, and makes the code much faster, though the angular velocity will not be constant across the blend.

参数
ResultPoseOutput pose of relative bone transforms.

◆ BlendPosesTogetherPerBone() [1/2]

static void FAnimationRuntime::BlendPosesTogetherPerBone ( TArrayView< const FCompactPose >  SourcePoses,
TArrayView< const FBlendedCurve >  SourceCurves,
const IInterpolationIndexProvider *  InterpolationIndexProvider,
TArrayView< const FBlendSampleData >  BlendSampleDataCache,
FCompactPose &  ResultPose,
FBlendedCurve &  ResultCurve 
)
static

Blends together a set of poses, each with a given weight.

This function is for BlendSpace per bone blending. BlendSampleDataCache contains the weight information

This blends in local space

参数
ResultPoseOutput pose of relative bone transforms.

◆ BlendPosesTogetherPerBone() [2/2]

static void FAnimationRuntime::BlendPosesTogetherPerBone ( TArrayView< const FCompactPose >  SourcePoses,
TArrayView< const FBlendedCurve >  SourceCurves,
const IInterpolationIndexProvider *  InterpolationIndexProvider,
TArrayView< const FBlendSampleData >  BlendSampleDataCache,
TArrayView< const int32 >  BlendSampleDataCacheIndices,
FCompactPose &  ResultPose,
FBlendedCurve &  ResultCurve 
)
static

Blends together a set of poses, each with a given weight.

This function is for BlendSpace per bone blending. BlendSampleDataCache contains the weight information and is indexed using BlendSampleDataCacheIndices, to prevent caller having to supply an ordered array

This blends in local space

参数
ResultPoseOutput pose of relative bone transforms.

◆ BlendPosesTogetherPerBoneInMeshSpace()

static void FAnimationRuntime::BlendPosesTogetherPerBoneInMeshSpace ( TArrayView< FCompactPose >  SourcePoses,
TArrayView< const FBlendedCurve >  SourceCurves,
const UBlendSpaceBase *  BlendSpace,
TArrayView< const FBlendSampleData >  BlendSampleDataCache,
FCompactPose &  ResultPose,
FBlendedCurve &  ResultCurve 
)
static

Blends together a set of poses, each with a given weight.

This function is for BlendSpace per bone blending. BlendSampleDataCache contains the weight information

This blends rotation in mesh space, so performance intensive.

参数
ResultPoseOutput pose of relative bone transforms.

◆ BlendTransformsByWeight()

static void FAnimationRuntime::BlendTransformsByWeight ( FTransform &  OutTransform,
const TArray< FTransform > &  Transforms,
const TArray< float > &  Weights 
)
static

Blend Array of Transforms by weight

参数
OutTransform: result

◆ BlendTwoPosesTogether()

static void FAnimationRuntime::BlendTwoPosesTogether ( const FCompactPose &  SourcePose1,
const FCompactPose &  SourcePose2,
const FBlendedCurve &  SourceCurve1,
const FBlendedCurve &  SourceCurve2,
const float  WeightOfPose1,
FCompactPose &  ResultPose,
FBlendedCurve &  ResultCurve 
)
static

Blends together two poses.

This function is lightweight

The blend is done by taking a weighted sum of each atom, and re-normalizing the quaternion part at the end, not using SLERP.

参数
ResultPoseOutput pose of relative bone transforms.

◆ BlendTwoPosesTogetherPerBone()

static void FAnimationRuntime::BlendTwoPosesTogetherPerBone ( const FCompactPose &  SourcePose1,
const FCompactPose &  SourcePose2,
const FBlendedCurve &  SourceCurve1,
const FBlendedCurve &  SourceCurve2,
const TArray< float > &  WeightsOfSource2,
FCompactPose &  ResultPose,
FBlendedCurve &  ResultCurve 
)
static

Blends together a set of poses, each with a given weight.

This function is for BlendSpace per bone blending. BlendSampleDataCache contains the weight information

This blends in local space

参数
ResultPoseOutput pose of relative bone transforms.

◆ ConvertBoneSpaceTransformToCS()

static void FAnimationRuntime::ConvertBoneSpaceTransformToCS ( const FTransform &  ComponentTransform,
FCSPose< FCompactPose > &  MeshBases,
FTransform &  InOutBoneSpaceTM,
FCompactPoseBoneIndex  BoneIndex,
EBoneControlSpace  Space 
)
static

Convert a FTransform in a specified bone space to ComponentSpace.

参数
ComponentTransformThe transform of the component. Only used if Space == BCS_WorldSpace
MeshBasesThe pose to use when transforming
InOutBoneSpaceTMThe bone transform to convert
BoneIndexThe bone index of the transform
SpaceThe space that the transform is in.

◆ ConvertCSTransformToBoneSpace()

static void FAnimationRuntime::ConvertCSTransformToBoneSpace ( const FTransform &  ComponentTransform,
FCSPose< FCompactPose > &  MeshBases,
FTransform &  InOutCSBoneTM,
FCompactPoseBoneIndex  BoneIndex,
EBoneControlSpace  Space 
)
static

Convert a ComponentSpace FTransform to specified bone space.

参数
ComponentTransformThe transform of the component. Only used if Space == BCS_WorldSpace
MeshBasesThe pose to use when transforming
InOutCSBoneTMThe component space transform to convert
BoneIndexThe bone index of the transform
SpaceThe space to convert the input transform into.

◆ ConvertMeshRotationPoseToLocalSpace()

static void FAnimationRuntime::ConvertMeshRotationPoseToLocalSpace ( FCompactPose &  Pose)
static

Convert a MeshSpaceRotation pose to Local Space.

Rotations are NOT normalized.

◆ ConvertPoseToMeshRotation()

static void FAnimationRuntime::ConvertPoseToMeshRotation ( FCompactPose &  LocalPose)
static

Convert LocalPose into MeshSpaceRotations.

Rotations are NOT normalized.

◆ EnsureParentsPresent()

static void FAnimationRuntime::EnsureParentsPresent ( TArray< FBoneIndexType > &  BoneIndices,
const FReferenceSkeleton &  RefSkeleton 
)
static

Utility for taking an array of bone indices and ensuring that all parents are present (ie.

all bones between those in the array and the root are present). Note that this must ensure the invariant that parent occur before children in BoneIndices.

◆ GetComponentSpaceTransformWithCache()

static const FTransform & FAnimationRuntime::GetComponentSpaceTransformWithCache ( const FReferenceSkeleton &  InRefSkeleton,
const TArray< FTransform > &  InBoneSpaceTransforms,
int32  BoneIndex,
TArray< FTransform > &  CachedTransforms,
TArray< bool > &  CachedTransformReady 
)
static

Calculate the component-space bone transform for the specified bone.

This is similar to GetComponentSpaceTransform(), but uses a cached array of transforms to prevent re-calculations when requesting transforms for multiple bones with shared parents. This is only likely to be more efficient than FillUpComponentSpaceTransforms if you only need a relatively small number of bone transforms.

参数
InRefSkeletonThe bone hierarchy
InBoneSpaceTransformsBone-space transforms for all bones in the hierarchy
BoneIndexWe calculate the component-space transform of this bone
CachedTransformsAn array of transforms which holds the transforms of any bones whose transforms have been previously calculated. Should be initialized with CachedTransforms.SetNumUninitialized(BoneSpaceTransforms.Num()) before first use.
CachedTransformReadyAn array of flags indicating which bone transforms have been cached. Should be initialized with CachedTransformReady.SetNumZeroed(BoneSpaceTransforms.Num()) before first use.

◆ GetStringDistance()

static int32 FAnimationRuntime::GetStringDistance ( const FString &  First,
const FString &  Second 
)
static

Calculate distance how close two strings are.

By close, it calculates how many operations to transform First to Second The return value is [0-MaxLengthString(First, Second)] 0 means it's identical, Max means it's completely different

◆ LerpBoneTransforms()

static void FAnimationRuntime::LerpBoneTransforms ( TArray< FTransform > &  A,
const TArray< FTransform > &  B,
float  Alpha,
const TArray< FBoneIndexType > &  RequiredBonesArray 
)
static

Lerp for BoneTransforms.

Stores results in A. Performs A = Lerp(A, B, Alpha);

参数
A: In/Out transform array.
B: B In transform array.
Alpha: Alpha.
RequiredBonesArray: Array of bone indices.

◆ LerpPoses()

static void FAnimationRuntime::LerpPoses ( FCompactPose &  PoseA,
const FCompactPose &  PoseB,
FBlendedCurve &  CurveA,
const FBlendedCurve &  CurveB,
float  Alpha 
)
static

Lerp for FCompactPose.

Stores results in PoseA. Performs PoseA = Lerp(PoseA, PoseB, Alpha);

◆ LerpPosesPerBone()

static void FAnimationRuntime::LerpPosesPerBone ( FCompactPose &  PoseA,
const FCompactPose &  PoseB,
FBlendedCurve &  CurveA,
const FBlendedCurve &  CurveB,
float  Alpha,
const TArray< float > &  PerBoneWeights 
)
static

Lerp for FCompactPose.

Stores results in PoseA. For each bone performs BoneA[i] = Lerp(BoneA[i], BoneB[i], Alpha * PerBoneWeights[i]);

◆ LerpPosesWithBoneIndexList()

static void FAnimationRuntime::LerpPosesWithBoneIndexList ( FCompactPose &  PoseA,
const FCompactPose &  PoseB,
FBlendedCurve &  CurveA,
const FBlendedCurve &  CurveB,
float  Alpha,
const TArray< FCompactPoseBoneIndex > &  BoneIndices 
)
static

Lerp for FCompactPose.

Stores results in PoseA. Performs PoseA = Lerp(PoseA, PoseB, Alpha); on reduced set of bones defined in BoneIndices list.

◆ RetargetBoneTransform()

static void FAnimationRuntime::RetargetBoneTransform ( const USkeleton *  MySkeleton,
const FName &  RetargetSource,
FTransform &  BoneTransform,
const int32  SkeletonBoneIndex,
const FCompactPoseBoneIndex &  BoneIndex,
const FBoneContainer &  RequiredBones,
const bool  bIsBakedAdditive 
)
static

Retarget a single bone transform, to apply right after extraction.

参数
MySkeletonSkeleton this is retargeting
RetargetSourceRetarget Source for the retargeting
BoneTransformBoneTransform to read/write from.
SkeletonBoneIndexBone Index in USkeleton.
BoneIndexBone Index in Bone Transform array.
RequiredBonesBoneContainer

该类的文档由以下文件生成: