Replies: 1 comment 3 replies
-
No, they are not local to the system set, they are local to the stage. If you get this warning, it is because your system is not running in the same stage as the physics update (post-update). Therefore there is no problem because your system is already always before or after the physics update.
the public system Note, you may also be interested in this issue #170 (and related PR #171) |
Beta Was this translation helpful? Give feedback.
-
It is useful to know when the physics system runs and act before/after it. There is a public enum
PhysicsSystem
that labels the various physics steps, but as far as I am aware, labels are local to theSystemSet
they are contained in, so attempting to run a systembefore/after()
one of thePhysicsSystem
results in Bevy warning that the label is unknown.Additionally, the physics system may tick only on certain frames (this is the default behavior), so it can be important to know whether the physics stepped. This case in particular can be covered by an event, but I'm not sure what the ideal solution is in general. I think an argument could be made that since physics is stepping in
PostUpdate
, it's unnecessary to directly runbefore/after()
the step.Beta Was this translation helpful? Give feedback.
All reactions