Home Reference Source Repository
import CameraAnimator from 'dh3dlib/js/base/CameraAnimator.js'
public class | source

CameraAnimator

Direct Subclass:

MMDCameraAnimator

CameraAnimator class

Constructor Summary

Public Constructor
public

constructor

Method Summary

Public Methods
public

animate(camera: Camera, elapsedTime: float): void

public

updateMotion(camera: Camera, elapsedTime: float): void

update camera status

Public Constructors

public constructor source

constructor

Public Methods

public animate(camera: Camera, elapsedTime: float): void source

Params:

NameTypeAttributeDescription
camera Camera

camera

elapsedTime float

elapsed time from previous frame (sec)

Return:

void

public updateMotion(camera: Camera, elapsedTime: float): void source

update camera status

Params:

NameTypeAttributeDescription
camera Camera

camera used

elapsedTime float

elapsed time from previous frame (sec)

Return:

void