if self.instance then local node = self.instance:node('Hips') if node then local hipsFirstChild = node.children[1] print(hipsFirstChild) local m = Mat2D.withTranslation(100, 100) if hipsFirstChild then hipsFirstChild:decompose(m) end endend
if self.instance then local node = self.instance:node('Hips') if node then local hipsParent = node.parent local m = Mat2D.withTranslation(100, 100) if hipsParent then hipsParent:decompose(m) end endend