Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples/ecs/iter_combinations: Initialize velocity using fixed times…
…tep (#10673) # Objective On some platforms (observed on Windows and Linux, works fine on web), velocity of all entities would be initialized to zero, making them simply fall into the star. ## Solution Using `Time<Fixed>::timestep` instead of `Time::delta_seconds` to initialize velocity. Since the entities are generated in the startup schedule, no time has elapsed yet and `Time::delta_seconds` would return zero on some platforms. `Time<Fixed>::timestep` will always return the expected time step of `FixedUpdate` schedule.
- Loading branch information