M3D / M3D / Animation / KeyframeRotation
Class: KeyframeRotation
M3D.Animation.KeyframeRotation
Memberof
M3D.Animation
Description
基于四元数的线性旋转插值
Author
YF
Export
Hierarchy
-
↳
KeyframeRotation
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new KeyframeRotation(): KeyframeRotation
Returns
Memberof
KeyframeRotation
Overrides
Properties
bConstant
• bConstant: boolean
Description
如果此关键帧的值与前一个关键帧的值相同,则该值为true
Memberof
Keyframe
Inherited from
bEaseInOut
• bEaseInOut: boolean
Description
如果开启了启动和停止的平滑过渡,则该值为true,否则为false
Memberof
Keyframe
Inherited from
bLinear
• bLinear: boolean
Description
如果旋转是线性的,则为true;如果旋转不是非线性的,则为false
Memberof
KeyframeRotation
bRelative
• bRelative: boolean
Description
是否关联
Memberof
Keyframe
Inherited from
rotationtype
• rotationtype: ANIRotationType
Description
旋转的类型
Memberof
KeyframeRotation
type
• type: ANIKeyframeType
Description
关键帧类型
Memberof
Keyframe
Inherited from
Methods
clone
▸ clone(): Keyframe
Returns
Description
克隆
Memberof
Keyframe
Inherited from
setConstant
▸ setConstant(constant
): void
Parameters
Name | Type |
---|---|
constant | boolean |
Returns
void
Description
使用此方法保持关键帧值不变
Memberof
Keyframe
Inherited from
setEaseInOut
▸ setEaseInOut(easeinout
): void
Parameters
Name | Type |
---|---|
easeinout | boolean |
Returns
void
Description
使用此方法表明您希望在开始时实现平稳过渡
Memberof
Keyframe
Inherited from
setRelative
▸ setRelative(relative
): void
Parameters
Name | Type |
---|---|
relative | boolean |
Returns
void
Description
设置是否相关
Memberof
Keyframe