目录

SkeletonAnimationInterface

Class Info

SkeletonAnimationInterface

用来使用骨骼动画的接口类,包含环境初始化、参数传递、动作融合、FootIK以及数据释放等功能。

Public Constructor Summary

Constructor Name

SkeletonAnimationInterface()

默认构造函数。

Public Destructor Summary

Destructor Name

~SkeletonAnimationInterface()

析构函数,释放内存。

Public Method Summary

Qualifier and Type

Method Name and Description

bool

InitSkeletonAnimation()

初始化骨骼动画所需要的环境和资源。

void

UpdateBlendState(JoystickInfo* stickInfo, CharacterStateInfo* characterInfo, BlendWeight* weight, int weightNum)

调用骨骼动画动作融合操作。

void

UpdateFootIKState(JoystickInfo *stickInfo, SkeletonInfos *skeletonInfo)

调用骨骼动画FootIK操作。

void

DeinitSkeletonAnimation()

释放环境和资源。

Public Constructors

[h2]SkeletonAnimationInterface

Constructor

SkeletonAnimationInterface()

无参构造函数。

Public Destructors

[h2]~SkeletonAnimationInterface

Destructor

~SkeletonAnimationInterface()

析构函数。

Public Methods

[h2]InitSkeletonAnimation

Method

bool InitSkeletonAnimation()

初始化骨骼动画所需要的环境和资源。

Returns

Type

Description

bool

判断环境和资源创建是否成功。

  • true:成功。
  • false:失败。

[h2]UpdateBlendState

Method

void UpdateBlendState(JoystickInfo* stickInfo, CharacterStateInfo* characterInfo, BlendWeight* weight, int weightNum)

调用骨骼动画动作融合操作。

Parameters

Name

Description

stickInfo

摇杆相关的入参。

characterInfo

角色当前状态相关的入参。

weight

融合权重相关的入参和出参。weight数组下标请参见CharacterState。

weightNum

weight数组的长度,长度为4。

[h2]UpdateFootIKState

Method

void UpdateFootIKState(JoystickInfo *stickInfo, SkeletonInfos *skeletonInfo)

调用骨骼动画FootIK操作。

Parameters

Name

Description

stickInfo

摇杆相关的入参。

skeletonInfo

骨骼动画FootIK操作所需的入参和出参。

[h2]DeinitSkeletonAnimation

Method

void DeinitSkeletonAnimation()

释放内存资源。