Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PhysicsTimestep mode to run only once with a fixed delta #60

Merged
merged 2 commits into from
Jul 9, 2023
Merged

Add PhysicsTimestep mode to run only once with a fixed delta #60

merged 2 commits into from
Jul 9, 2023

Conversation

NiseVoid
Copy link
Contributor

@NiseVoid NiseVoid commented Jul 8, 2023

I added a FixedOnce mode to physics timestep which only runce once every time the system triggers. With this change running inside FixedUpdate seems to work as intended.
I'm not sure if the behavior for physics_loop.paused is correct considering the queued_steps logic in the other mode.

@Jondolf Jondolf added the enhancement New feature or request label Jul 8, 2023
@Jondolf Jondolf merged commit ac05b02 into Jondolf:main Jul 9, 2023
3 checks passed
@NiseVoid NiseVoid deleted the add_fixed_once branch September 10, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants