Closed as not planned
Description
What problem does this solve or what need does it fill?
Updating Transform
late or reading GlobalTransform
early are very common issues that result in a number of help requests and bugs in general.
What solution would you like?
Generate a warning in debug mode any time a Transform
is ever mutated after GlobalTransform
is propagated or a GlobalTransform
is accessed before it has been updated that frame.
What alternative(s) have you considered?
- Do nothing, accept this as a source of error.
- Develop some general method of specifying component dependencies.
- Keep positions from the last frame in
GlobalTransform
and propagateTransform
s at the end of the frame to ensure that worst case, systems accessing it will be a frame out of date, but still work. This could be accompanied with an error message.