1vanK
I need child node that moved with parent, but do not inherit its scale. How to do it? I see 2 approach for it:
- Add flags for the nodes: inherit scale, move, rotation.
- Add event “E_SCALECHANGED” and fix sizes of child nodes with SetSizeSilent().
Of course I can check sizes of schild nodes everey frame
Update()
{
if (childNode_.GetWorldScale() != x)
childNode_.SetWorldScale(x);
}
but it looks as dirty hack