Skip to content

@orillusion/core


Class: AnimationCurveT

Defined in: src/math/AnimationCurveT.ts:13

Animation Curve has frame list data

Constructors

Constructor

new AnimationCurveT(k?): AnimationCurveT

Defined in: src/math/AnimationCurveT.ts:33

Parameters

k?

number = 1

Returns

AnimationCurveT

Properties

path

path: string

Defined in: src/math/AnimationCurveT.ts:15

Target node path this curve animates.


attribute

attribute: string

Defined in: src/math/AnimationCurveT.ts:17

Animated attribute name.


propertys

propertys: string[]

Defined in: src/math/AnimationCurveT.ts:19

Attribute split into its component property names.


preInfinity

preInfinity: number

Defined in: src/math/AnimationCurveT.ts:21

Wrap mode applied for times before the first keyframe.


postInfinity

postInfinity: number

Defined in: src/math/AnimationCurveT.ts:23

Wrap mode applied for times after the last keyframe.


rotationOrder

rotationOrder: number

Defined in: src/math/AnimationCurveT.ts:25

Euler rotation order associated with this curve.


m_curves

m_curves: AnimationCurve[]

Defined in: src/math/AnimationCurveT.ts:27

Per-channel scalar animation curves.

Accessors

totalTime

Get Signature

get totalTime(): number

Defined in: src/math/AnimationCurveT.ts:64

return this curve use total time

Returns

number

Methods

addKeyFrame()

addKeyFrame(keyFrame): void

Defined in: src/math/AnimationCurveT.ts:72

add keyFrame to curve keyframe last and calcTotalTime

Parameters

keyFrame

KeyframeT

Keyframe sea: one key frame data

Returns

void


removeKeyFrame()

removeKeyFrame(keyFrame): void

Defined in: src/math/AnimationCurveT.ts:82

remove keyframe from this curve

Parameters

keyFrame

KeyframeT

Keyframe

Returns

void


getValue()

getValue(time): CurveValueT

Defined in: src/math/AnimationCurveT.ts:93

get caculate frames value

Parameters

time

number

Returns

CurveValueT


getKeyCount()

getKeyCount(): number

Defined in: src/math/AnimationCurveT.ts:176

get has Keyframe list count

Returns

number

int


getKey()

getKey(index): Keyframe[]

Defined in: src/math/AnimationCurveT.ts:185

Get a Keyframe Data by Index

Parameters

index

number

must int

Returns

Keyframe[]

Keyframe Keyframe


formBytes()

formBytes(bytes): void

Defined in: src/math/AnimationCurveT.ts:197

Read this multi-channel curve from a binary byte stream.

Parameters

bytes

BytesArray

source byte array

Returns

void