refactored Object.setRotationArray()