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

M3D / M3D / Animation / KeyframeRotation

Class: KeyframeRotation

M3D.Animation.KeyframeRotation

Memberof

M3D.Animation

Description

基于四元数的线性旋转插值

Author

YF

Export

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new KeyframeRotation(): KeyframeRotation

Returns

KeyframeRotation

Memberof

KeyframeRotation

Overrides

Keyframe.constructor

Properties

bConstant

bConstant: boolean

Description

如果此关键帧的值与前一个关键帧的值相同,则该值为true

Memberof

Keyframe

Inherited from

Keyframe.bConstant


bEaseInOut

bEaseInOut: boolean

Description

如果开启了启动和停止的平滑过渡,则该值为true,否则为false

Memberof

Keyframe

Inherited from

Keyframe.bEaseInOut


bLinear

bLinear: boolean

Description

如果旋转是线性的,则为true;如果旋转不是非线性的,则为false

Memberof

KeyframeRotation


bRelative

bRelative: boolean

Description

是否关联

Memberof

Keyframe

Inherited from

Keyframe.bRelative


rotationtype

rotationtype: ANIRotationType

Description

旋转的类型

Memberof

KeyframeRotation


type

type: ANIKeyframeType

Description

关键帧类型

Memberof

Keyframe

Inherited from

Keyframe.type

Methods

clone

clone(): Keyframe

Returns

Keyframe

Description

克隆

Memberof

Keyframe

Inherited from

Keyframe.clone


setConstant

setConstant(constant): void

Parameters

NameType
constantboolean

Returns

void

Description

使用此方法保持关键帧值不变

Memberof

Keyframe

Inherited from

Keyframe.setConstant


setEaseInOut

setEaseInOut(easeinout): void

Parameters

NameType
easeinoutboolean

Returns

void

Description

使用此方法表明您希望在开始时实现平稳过渡

Memberof

Keyframe

Inherited from

Keyframe.setEaseInOut


setRelative

setRelative(relative): void

Parameters

NameType
relativeboolean

Returns

void

Description

设置是否相关

Memberof

Keyframe

Inherited from

Keyframe.setRelative