Open behindcurtain3 opened 10 months ago
Related: Orbit processer doesn't need to walk through the tree anymore, and should be faster if we don't. ~That is on my todo shortlist.~ this is now done. Position and orbits should always have the same parent, and I think children, there's probably something we can do to merge these somehow.
Can you write a test for this? Looking at the code, TreeHiraechyDB should handle this correctly.
If an OrbitDB is removed from an Entity, the DB can still be referenced by the Parent or Children of other DB's in it's hierarchy. This will crash the game in the OrbitProcessor when it reaches the entity that now no longer has an OrbitDB.