So I’m having some issues with how the display groups work (or perhaps how I’m trying to make them work) and was wondering if anyone could give any insight.
So, for this I’m working on a kind of teeter-totter mechanic. So there’s one board that two objects rest on at opposite ends. Once the two ends have an object on it, it slowly rocks back and forth.
The best way to do this, I thought, was to have the teeter-totter object itself be its own display group. That way, the other two objects would just be inserted into it and rotate along with it as it rocks back and forth. This alone works fine in terms of just the rotation itself.
The problem is, when I insert those objects, it throws off the positioning of the whole group when I start trying to rotate the group, or animating it in any way. I figure the reason for this is, with the new objects added, the technical center point of the teeter totter group changes to accompany those objects, so depending on the objects sizes, it can be displaced differently.
I’m wondering if there’s a way around this issue? So far it seems like I just have to constantly adjust and reset the position of the group once everything is inserted, based on which objects get placed where (not all objects placed onto it are the same sizes), which is kind of messy, but if there’s a better way or some other way I could be handling this better it’d be super neat to know.
