API Reference

Class List

pc.AnimClip

AnimClip wraps the running state of an animation track. It contains and update the animation 'cursor' and performs looping logic.

Summary

Details

Constructor

AnimClip(track, time, speed, playing, loop)

Create a new animation clip.

Parameters

trackpc.AnimTrack

the animation data.

timenumber

the initial time of the clip.

speednumber

speed of the animation playback.

playingboolean

true if the clip is playing and false otherwise.

loopboolean

whether the clip should loop.