Home Reference Source
import AnimationPlayer from 'glboost/src/auxiliaries/AnimationPlayer.js'
public class | source

AnimationPlayer

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public set
Private Members
private
private
private
private
private
private
private
private
private
private
private
private

Method Summary

Public Methods
public

calcAnimationTime(speedRatio: number): *

public

changeMotion(motionName: string)

public

changeRange(start: number, end: number)

public

init(group: any)

public
public

play()

Private Methods
private

__setupMultiMotions(group: any)

Public Constructors

public constructor() source

Public Members

public get animationMotions: * source

public set animationMotions: Array<any> source

Private Members

private __FpsForPlaying: number source

private __animationCurrentTime: number source

private __animationEndRange: number source

private __animationEndTime: number source

private __animationLastTime: number source

private __animationLength: number source

private __animationMotions: Array<any> source

private __animationStartRange: number source

private __animationStartTime: number source

private __currentMillisecondAtStart: number source

private __currentMotion: string source

private __isPlaying: boolean source

Public Methods

public calcAnimationTime(speedRatio: number): * source

Params:

NameTypeAttributeDescription
speedRatio number
  • optional
  • default: 1

Return:

*

public changeMotion(motionName: string) source

Params:

NameTypeAttributeDescription
motionName string

public changeRange(start: number, end: number) source

Params:

NameTypeAttributeDescription
start number
end number

public init(group: any) source

Params:

NameTypeAttributeDescription
group any

public moveToTheTime(time: number) source

Params:

NameTypeAttributeDescription
time number

public play() source

Private Methods

private __setupMultiMotions(group: any) source

Params:

NameTypeAttributeDescription
group any