@wip Collapse mesh into entity