M3D / M3D / Animation / PathHelper
Class: PathHelper
Memberof
M3D.Animation
Author
YF
Description
动画路径工具类
Date
2022-1-12
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Table of contents
Constructors
Methods
Constructors
constructor
• new PathHelper(scene
): PathHelper
Parameters
Name | Type |
---|---|
scene | Scene |
Returns
Memberof
PathHelper
Methods
addPathExecutiveAnimation
▸ addPathExecutiveAnimation(pSAManager
): void
Parameters
Name | Type |
---|---|
pSAManager | SimulationAnimationManager |
Returns
void
Description
添加路径插值动画
Memberof
PathHelper
clearAnimationPath
▸ clearAnimationPath(pSAManager
): void
Parameters
Name | Type | Description |
---|---|---|
pSAManager | SimulationAnimationManager | 动画管理器 |
Returns
void
Description
清空动画路径
Memberof
PathHelper
deletePathAnimation
▸ deletePathAnimation(pSAManager
, pathAnimation
): void
Parameters
Name | Type |
---|---|
pSAManager | SimulationAnimationManager |
pathAnimation | PathAnimation |
Returns
void
Memberof
PathHelper
initPathAnimation
▸ initPathAnimation(pSAManager
): void
Parameters
Name | Type | Description |
---|---|---|
pSAManager | SimulationAnimationManager | 动画管理器 |
Returns
void
Description
初始化路径动画
Memberof
PathHelper
pathToSceneNode
▸ pathToSceneNode(pSAManager
): number
Parameters
Name | Type | Description |
---|---|---|
pSAManager | SimulationAnimationManager | 动画管理器 |
Returns
number
-1为添加失败,1为添加成功
Description
将路径添加至场景
Memberof
PathHelper