RotateBy* RotateBy::create(float fDuration, float fDeltaAngleX, float fDeltaAngleY) { RotateBy *pRotateBy = new RotateBy(); pRotateBy->initWithDuration(fDuration, fDeltaAngleX, fDeltaAngleY); pRotateBy->autorelease(); return pRotateBy; }
RotateBy* RotateBy::create(float rotate_x, float rotate_y, float rotate_z, long _time) { RotateBy* 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; }