Rework 'setRigData()' to receive object.