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 propagate Transforms 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.
What problem does this solve or what need does it fill?
Updating
Transformlate or readingGlobalTransformearly 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
Transformis ever mutated afterGlobalTransformis propagated or aGlobalTransformis accessed before it has been updated that frame.What alternative(s) have you considered?
GlobalTransformand propagateTransforms 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.