pokepetter / ursina

A game engine powered by python and panda3d.
https://pokepetter.github.io/ursina/
MIT License
2.23k stars 328 forks source link

Added a post_update global function and a post_update method for Entity. #721

Open Squigglecito opened 2 months ago

Squigglecito commented 2 months ago

These post_update functions are run in a separate phase after the regular update. This is useful for when some logic needs the most up-to-date data that is modified by from update. For example if the EditorCamera changes the camera position and you need that most up to date transform for a shader. A pre_update could be added in the future.