Skip to content

Configurable animation iteration count #424

Closed

Description

@cdata

As of #421 , we support playback of animations in models. The default behavior for this feature is to play a selected animation continuously. However, we may want to support user-configurable iteration count to limit the number of times an animation is looped. The default would remain what it is as of #421: infinity.

Activity

  1. donmccurdy commented on Mar 12, 2019

    @donmccurdy
    Contributor

    Perhaps worth considering this as a 'mode' rather than an integer property. For example, see THREE.AnimationAction.loopMode's three states:

    • THREE.LoopOnce - playing the clip once,
    • THREE.LoopRepeat - playing the clip with the choosen number of repetitions, each time jumping from the end of the clip directly to its beginning,
    • THREE.LoopPingPong - playing the clip with the choosen number of repetitions, alternately playing forward and backward.

    Ping-pong could be helpful for something like a door opening, where the animation should be played in reverse before restarting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arc: customizationtype: feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions