跳到主要内容
版本:v10.0

M3D / M3D / Animation / PathHelper

Class: PathHelper

M3D.Animation.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

NameType
sceneScene

Returns

PathHelper

Memberof

PathHelper

Methods

addPathExecutiveAnimation

addPathExecutiveAnimation(pSAManager): void

Parameters

NameType
pSAManagerSimulationAnimationManager

Returns

void

Description

添加路径插值动画

Memberof

PathHelper


clearAnimationPath

clearAnimationPath(pSAManager): void

Parameters

NameTypeDescription
pSAManagerSimulationAnimationManager动画管理器

Returns

void

Description

清空动画路径

Memberof

PathHelper


deletePathAnimation

deletePathAnimation(pSAManager, pathAnimation): void

Parameters

NameType
pSAManagerSimulationAnimationManager
pathAnimationPathAnimation

Returns

void

Memberof

PathHelper


initPathAnimation

initPathAnimation(pSAManager): void

Parameters

NameTypeDescription
pSAManagerSimulationAnimationManager动画管理器

Returns

void

Description

初始化路径动画

Memberof

PathHelper


pathToSceneNode

pathToSceneNode(pSAManager): number

Parameters

NameTypeDescription
pSAManagerSimulationAnimationManager动画管理器

Returns

number

-1为添加失败,1为添加成功

Description

将路径添加至场景

Memberof

PathHelper