Skip to content

[Feat]: Add "Step-by-Step" frame scrubbing buttons to simulation controls #319

@mattqdev

Description

@mattqdev

Describe the feature

Add "Step Forward" and "Step Backwards" buttons next to the Play/Pause controls. Clicking them manually ticks the simulation clock by +0.01 or -0.01 while paused.

Motivation

It’s tough to pause a fast simulation at the exact right millisecond (like hitting the peak of a projectile arc or the exact moment of a collision). Frame scrubbing lets students lock in the exact frame they need to grab clean data for their physics homework.

Alternatives considered

A slow-motion slider (0.25x speed), but you still have to guess the pause timing.A full timeline scrubber bar, but that's way harder to build on a canvas than simple step buttons.

Additional context

We just need a way to manually inject a fixed delta time (dt) into the physics loop and force a single frame rerender when paused.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions