I got this quesition recently: when i set the root mesh a parent, and then make the parent showing boundingbox, and attach a gizmo to the parent. the gizmo always show in the zero point.
I just want to achieve these following things:
- when i point down the legs or the arms of the girl, i want the whole body showbounding box to indicate that this girl was chosen. I do not want the arms or the legs show boundingbox themselves, i just want them act in a whole.
- I also want to show the gizmo attached to the girl and i want the gizmo sits in the girl’ position.
Based on that requirements, i tried like this way:
When point down triggers, i will find the root of the pointed mesh, and then create a parent mesh to be the parent of the root mesh, and i will calculate the boundingbox and add bounding box to the parent mesh. It seems that it works, but the gizmo was not in the expected position, and it always locate in the zero vector. I have no idea about that.
Can anyone have a better idea to achieve the needs? By the way, i tried MakeNotPickableAndWrapInBoundingBox and it cannot meet my requirements. Because when you mouse down a place near by the body which includes in the MakeNotPickableAndWrapInBoundingBox area, the boundingbox would show. I just want to make sure that any part of the body got clicked and then the boundingbox show.
I really need help on that, i appreciate if anyone can help me.
I created the simple playground here: