Skip to main content

Class: AnimationUtils

Constructors

constructor

new AnimationUtils(): AnimationUtils

Returns

AnimationUtils

Methods

generateClip

generateClip(name, times, initialPosition, initialQuaternion, midPositions, midQuaternions): AnimationClip

Generates an animation clip.

Parameters

NameTypeDescription
namestringName of the clip
timesnumber[]Times of the clip
initialPositionVector3Initial position
initialQuaternionQuaternionInitial quaternion
midPositionsVector3[]Middle positions
midQuaternionsQuaternion[]Middle quaternions

Returns

AnimationClip

Animation clip