CCCamera *camera = this->getCamera(); float eyeZ = CCCamera::getZEye(); camera->setEyeXYZ(0,eyeZ + i); //当i增大时,整个场景由大到小收缩。
原文链接:https://www.f2er.com/cocos2dx/347155.htmlCCCamera *camera = this->getCamera(); float eyeZ = CCCamera::getZEye(); camera->setEyeXYZ(0,eyeZ + i); //当i增大时,整个场景由大到小收缩。