Skip to content

Scenes should track cumulative time since starting #851

Closed
@eulertour

Description

@eulertour

Description of proposed feature

Scenes should store the total time since starting and make this value accessible via a public API.

How can the new feature be used?

There isn't currently a way to update mobjects based on the cumulative elapsed time since a given start point. Time based updaters only pass dt, the incremented time, which leaves the user to add that value to a running total manually in order to track cumulative time. This makes things like animating a continually growing angle unnecessarily complex.

It may be best to also add a new Clock class which inherits from ValueTracker and has APIs like Scene.get_clock(), Clock.start(), and Clock.stop().

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionRequesting a feature or change for Manim

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions