Relationship between logic gadget and microchip being "grouped with" AND "on canvas of" - any risk that this will get broken in an update?
OK, this isn't so much of a "how do I?" - it's more of an "already know how, but is it so hacky that it'll get broken?"
Placing a logic gadget on the canvas of a microchip doesn't implicitly create a "grouped with" relationship between the logic gadget and the microchip - it creates an "on the canvas of" relationship, and those two relationships are different things.
However, this doesn't mean that the relationship between the gadget and its containing microchip can't be both "grouped with" and "on the canvas of" simultaneously. But creating that combination of relationships is somewhat sensitive to the order of construction steps - here is an example order that works:
1. Create logic gadget outside of microchip canvas.
2. Create microchip.
3. Select logic gadget.
4. Select microchip.
5. Group selected.
6. Scope into group.
7. Move logic gadget onto microchip canvas.
The order sensitive steps are steps 5 and 7 - the "grouped with" relationship must be created before the "on the canvas of" relationship.
And there's a use case for the relationship between a logic gadget and its containing microchip being this combination of two relationships - the gadget having a gizmo at a non-default position that needs to be relative to the microchip instead of scene space. If the relationship is "on the canvas of" alone and not "grouped with", the non-default positioned gizmo won't move with the microchip.
But although the group technically still has two direct members - the microchip and the logic gadget on its canvas - from a certain point of view, what I've done here is to create a group with only one member - the microchip. Had I tried a different order of construction steps, assembly mode wouldn't have allowed a selection that included a microchip and a contained logic gadget to be a selection of more than one object eligible for grouping. It would have folded it into a selection of a single object - the microchip.
So the question here is: considering that this might be an unusual thing to do, is there a risk that it might get broken in an update?
-
Hi, interesting one!
The position of the gadget's gizmo is always stored relative to the microchip it is on. So if the microchip moves, under animation or physics, the gizmo position will always move with it. That definitely won't be changing. The difference you're seeing (I believe!) is just when moving the objects with the imp in the editor. If a microchip is floating in space and not stuck to a physical object then we preserve the world positions of gadgets stuck to it. I.e. we assume the position of the microchip to be unimportant. If however the microchip is stuck to an object or group we assume you want all positions to be relative to the object/group.
The ugly thing about having a microchip as the only object in a group is that it looks like a normal microchip but doesn't behave like one (i.e. you can't stick it to anything). Because of that we may try and prevent that from happening in the editor in future.
Hope that answers some of your questions!
thanks
Matt
iniciar sessão para comentar.