A mechanism of component state is now available while it is still unused and the API is not spread over the code base.
We could work on generalizing it : delegating all functions (init, addForce etc) to make sure it uses the componentState.
Then, internal update of component would be possible and check in the scene graph of each component would allow to detect issues and prevent from crashes.
Initially, this issue was only focused on "Deprecate the doUpdateInternal" : this API of internal update in BaseObjects should be removed and callbacks should be spread instead. As noticed in #1979
A mechanism of component state is now available while it is still unused and the API is not spread over the code base.
We could work on generalizing it : delegating all functions (init, addForce etc) to make sure it uses the componentState. Then, internal update of component would be possible and check in the scene graph of each component would allow to detect issues and prevent from crashes.
Initially, this issue was only focused on "Deprecate the doUpdateInternal" : this API of internal update in BaseObjects should be removed and callbacks should be spread instead. As noticed in #1979