Class KeyFrameAnimation

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(root: Mesh, data: any, JITCompile?: boolean): KeyFrameAnimation

Parameters

  • root: Mesh
  • data: any
  • JITCompile?: boolean optional

Returns

KeyFrameAnimation

Properties

public JITCompile: boolean

public currentTime: number

public data: Object

public hierarchy: KeyFrames[]

public isPaused: number

public isPlaying: number

public loop: number

public root: Mesh

public timeScale: number

Methods

public getNextKeyWith(type: string, h: number, key: number): KeyFrame

Parameters

  • type: string
  • h: number
  • key: number

Returns

KeyFrame

public getPrevKeyWith(type: string, h: number, key: number): KeyFrame

Parameters

  • type: string
  • h: number
  • key: number

Returns

KeyFrame

public interpolateCatmullRom(points: Vector3[], scale: number): Vector3[]

Parameters

Returns

Vector3[]

public pause()

public play(loop?: number, startTimeMS?: number)

Parameters

  • loop?: number optional
  • startTimeMS?: number optional

public stop()

public update(deltaTimeMS: number)

Parameters

  • deltaTimeMS: number