You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out the best way to setup a simple system for evaluating transform hierarchies.
I have a transform component that tracks a relative transform (parent) and an absolute transform (world).
using the childOf relationship seems to be the de-facto way of setting up the hierarchy, but I also want to minimize the work done each frame. I've introduced a "Dirty" tag to attach to transforms that have been modified.
My updateTransformHierarchy system needs to query for Dirty transforms with children, and iterate through them, updating the absolute transforms of the children, and passing the dirty flag down, ideally only if the child transform has a child of its own.
Traversal for the childOf relationship moves from child to parent, im not sure if this is ideal for my requirements.
if anyone has insight into how to accomplish something like this it would be appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to figure out the best way to setup a simple system for evaluating transform hierarchies.
I have a transform component that tracks a relative transform (parent) and an absolute transform (world).
using the childOf relationship seems to be the de-facto way of setting up the hierarchy, but I also want to minimize the work done each frame. I've introduced a "Dirty" tag to attach to transforms that have been modified.
My updateTransformHierarchy system needs to query for Dirty transforms with children, and iterate through them, updating the absolute transforms of the children, and passing the dirty flag down, ideally only if the child transform has a child of its own.
Traversal for the childOf relationship moves from child to parent, im not sure if this is ideal for my requirements.
if anyone has insight into how to accomplish something like this it would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions