Skip to content

Conversation

@kfc35
Copy link
Contributor

@kfc35 kfc35 commented Dec 20, 2025

Objective

Solution

  • Utilize the virtual clock to pause time! Use the real time clock in config as well, though, since increasing and decreasing line widths scales happens with elapsed time deltas.
  • I did not include an indicator for when the scenes are paused / unpaused since it seems there is at least one thing constantly moving in the two scenes unless they are paused. (the 2d example has that constantly rotating oval, and the 3d example has that constantly moving grid gizmo in the air)

Testing

  • Did you test these changes? If so, how?
    I ran both the affected examples:
    cargo run --example 3d_gizmos --features=“free_camera”
    cargo run --example 2d_gizmos
    Pausing works as expected, and increasing/decreasing line widths while paused still works

@pablo-lua pablo-lua added C-Examples An addition or correction to our examples A-Gizmos Visual editor and debug gizmos D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Dec 20, 2025
Copy link

@Hilpogar Hilpogar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and approved 👍

@pablo-lua pablo-lua added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Gizmos Visual editor and debug gizmos C-Examples An addition or correction to our examples D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make bevy gizmos examples pausable

3 participants