engine
 
载入中...
搜索中...
未找到
Public 属性 | Protected 成员函数 | Protected 属性 | 友元 | 所有成员列表
UBlendSpaceBase类 参考

Allows multiple animations to be blended between based on input parameters 更多...

#include <BlendSpaceBase.h>

+ 类 UBlendSpaceBase 继承关系图:

Public 属性

float AnimLength
 This animation length changes based on current input (resulting in different blend time)
 
bool bRotationBlendInMeshSpace
 When you use blend per bone, allows rotation to blend in mesh space. 更多...
 
FInterpolationParameter InterpolationParam [3]
 Input interpolation parameter for all 3 axis, for each axis input, decide how you'd like to interpolate input to
 
TEnumAsByte< ENotifyTriggerMode::Type > NotifyTriggerMode
 The current mode used by the blendspace to decide which animation notifies to fire. 更多...
 
float TargetWeightInterpolationSpeedPerSec
 Target weight interpolation. 更多...
 

Protected 成员函数

FVector ClampBlendInput (const FVector &BlendInput) const
 Clamp blend input to valid point
 
bool ContainsMatchingSamples (EAdditiveAnimationType AdditiveType) const
 Returns whether or not all animation set on the blend space samples match the given additive type
 
FVector FilterInput (FBlendFilter *Filter, const FVector &BlendInput, float DeltaTime) const
 Interpolate BlendInput based on Filter data
 
float GetAnimationLengthFromSampleData (const TArray< FBlendSampleData > &SampleDataList) const
 Utility function to calculate animation length from sample data list
 
virtual EBlendSpaceAxis GetAxisToScale () const
 Let derived blend space decided how to handle scaling
 
const FEditorElement * GetGridSampleInternal (int32 Index) const
 Returns the grid element at Index or NULL if Index is not valid
 
FVector GetNormalizedBlendInput (const FVector &BlendInput) const
 Translates BlendInput to grid space
 
virtual void GetRawSamplesFromBlendInput (const FVector &BlendInput, TArray< FGridBlendSample, TInlineAllocator< 4 > > &OutBlendSamples) const
 Get Grid Samples from BlendInput, From Input, it will populate OutGridSamples with the closest grid points. 更多...
 
void InitializePerBoneBlend ()
 Initialize Per Bone Blend
 
bool InterpolateWeightOfSampleData (float DeltaTime, const TArray< FBlendSampleData > &OldSampleDataList, const TArray< FBlendSampleData > &NewSampleDataList, TArray< FBlendSampleData > &FinalSampleDataList) const
 Utility function to interpolate weight of samples from OldSampleDataList to NewSampleDataList and copy back the interpolated result to FinalSampleDataList
 
virtual bool IsSameSamplePoint (const FVector &SamplePointA, const FVector &SamplePointB) const
 Checks if the given samples points overlap
 
void ResetToRefPose (FCompactPose &OutPose)
 Reset to reference pose. 更多...
 

Protected 属性

struct FBlendParameter BlendParameters [3]
 Blend Parameters for each axis.
 
TArray< struct FEditorElement > GridSamples
 Grid samples, indexing scheme imposed by subclass
 
TArray< FPerBoneInterpolation > PerBoneBlend
 Define target weight interpolation per bone. 更多...
 
TArray< struct FBlendSample > SampleData
 Sample animation data
 
int32 SampleIndexWithMarkers
 Track index to get marker data from. 更多...
 

友元

class FBlendSpaceDetails
 Required for accessing protected variable names
 

详细描述

Allows multiple animations to be blended between based on input parameters

成员函数说明

◆ GetRawSamplesFromBlendInput()

virtual void UBlendSpaceBase::GetRawSamplesFromBlendInput ( const FVector &  BlendInput,
TArray< FGridBlendSample, TInlineAllocator< 4 > > &  OutBlendSamples 
) const
inlineprotectedvirtual

Get Grid Samples from BlendInput, From Input, it will populate OutGridSamples with the closest grid points.

参数
BlendInputBlendInput X, Y, Z corresponds to BlendParameters[0], [1], [2]
OutBlendSamplesPopulated with the samples nearest the BlendInput

被 UBlendSpace , 以及 UBlendSpace1D 重载.

◆ ResetToRefPose()

void UBlendSpaceBase::ResetToRefPose ( FCompactPose &  OutPose)
protected

Reset to reference pose.

It does apply different refpose based on additive or not

类成员变量说明

◆ bRotationBlendInMeshSpace

bool UBlendSpaceBase::bRotationBlendInMeshSpace

When you use blend per bone, allows rotation to blend in mesh space.

This only works if this does not contain additive animation samples This is more performance intensive

◆ NotifyTriggerMode

TEnumAsByte<ENotifyTriggerMode::Type> UBlendSpaceBase::NotifyTriggerMode

The current mode used by the blendspace to decide which animation notifies to fire.

Valid options are:

  • AllAnimations - All notify events will fire
  • HighestWeightedAnimation - Notify events will only fire from the highest weighted animation
  • None - No notify events will fire from any animations

◆ PerBoneBlend

TArray<FPerBoneInterpolation> UBlendSpaceBase::PerBoneBlend
protected

Define target weight interpolation per bone.

This will blend in different speed per each bone setting

◆ SampleIndexWithMarkers

int32 UBlendSpaceBase::SampleIndexWithMarkers
protected

Track index to get marker data from.

Samples are tested for the suitability of marker based sync during load and if we can use marker based sync we cache an index to a representative sample here

◆ TargetWeightInterpolationSpeedPerSec

float UBlendSpaceBase::TargetWeightInterpolationSpeedPerSec

Target weight interpolation.

When target samples are set, how fast you'd like to get to target. Improve target blending. i.e. for locomotion, if you interpolate input, when you move from left to right rapidly, you'll interpolate through forward, but if you use target weight interpolation, you'll skip forward, but interpolate between left to right


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