I'm struggling to debug a problem with the transform of a child text component in my networked game. You can reproduce the issue (maybe 30% occurance) by opening two windows of https://weasga.com/ . I have two player entities with MaterialMesh2d bundles (including transforms), these images always correctly show the player positions. Each entity also has a child text entity, which usually gets the correct GlobalTransform, following the image, but can sometimes detach. Child transforms always read 0, 0, 0, and can correctly query their parent transforms, yet sometimes the global transform 'detaches'. I'd welcome even just ideas on what properties I should be investigating to debug!
#Detached child transform
5 messages · Page 1 of 1 (latest)
System ordering ambiguity would be the first thing I check - try explicitly ordering systems that mutate Transform or GlobalTransform
I would also want to check and ensure the parent's Children component had the correct children
When the issue occures, does it affect every entity or is the ~30% rate per-entity?
Thanks @silk briar really good pointers for me to follow. As far as I can tell (debugging via EntityRef) both parents and children keep correct references to each other. I also explicitly .chained all of the systems for debugging, and I think this impacts the occurance, ultimately the problem does still show up. The rate is per entity, but I suspect triggered in ggrs rollbacks, one way or another.