Home Reference Source Repository
import MMDAnimator from 'dh3dlib/js/mmd/MMDAnimator.js'
public class | source

MMDAnimator

Extends:

Animator → MMDAnimator

MMDAnimator class

Method Summary

Public Methods
public

getBezierValue(bx1: *, by1: *, bx2: *, by2: *, y0: *, y1: *, k: *): *

public

setBone(dhObject: *, motion: *, bone: *)

public

setFace(dhObject: *, faceMotion: *, face: *)

public

updateMotion(dhObject: *, elapsedTime: *)

Inherited Summary

From class Animator
public

animate(dhObject: DH3DObject, elapsedTime: float): void

set object's bones position/angle at specified animation time and recalc bone/ik recursively.

public

updateMotion(dhObject: DH3DObject, elapsedTime: float): void

set object's bones position/angle at specified animation time

Public Methods

public getBezierValue(bx1: *, by1: *, bx2: *, by2: *, y0: *, y1: *, k: *): * source

Params:

NameTypeAttributeDescription
bx1 *
by1 *
bx2 *
by2 *
y0 *
y1 *
k *

Return:

*

public setBone(dhObject: *, motion: *, bone: *) source

Params:

NameTypeAttributeDescription
dhObject *
motion *
bone *

public setFace(dhObject: *, faceMotion: *, face: *) source

Params:

NameTypeAttributeDescription
dhObject *
faceMotion *
face *

public updateMotion(dhObject: *, elapsedTime: *) source

Override:

Animator#updateMotion

Params:

NameTypeAttributeDescription
dhObject *
elapsedTime *