RotateTo* RotateTo::create(float fDuration, float fDeltaAngleX, float fDeltaAngleY) { RotateTo* pRotateTo = new RotateTo(); pRotateTo->initWithDuration(fDuration, fDeltaAngleX, fDeltaAngleY); pRotateTo->autorelease(); return pRotateTo; }
RotateTo* RotateTo::create(float rotate_x, float rotate_y, float rotate_z, long _time) { RotateTo* ret = nullptr; gbAlloc(ret); ret->m_dstRotate.x = rotate_x; ret->m_dstRotate.y = rotate_y; ret->m_dstRotate.z = rotate_z; ret->m_remainTimer = _time; ret->autorelease(); return ret; }