/** Creates a OrbitCamera action with radius,delta-radius,z,deltaZ,x,deltaX. * * @param t Duration in seconds. * @param radius The start radius. * @param deltaRadius The delta radius. * @param angleZ The start angle in Z. * @param deltaAngleZ The delta angle in Z. * @param angleX The start angle in X. * @param deltaAngleX The delta angle in X. * @return An OrbitCamera. */
static OrbitCamera* create(float t,float radius,float deltaRadius,float angleZ,float deltaAngleZ,float angleX,float deltaAngleX);
例如:
local orbitCamera = cc.OrbitCamera:create(0.5,1,0,90,-90,0)
local scaleTo = cc.ScaleTo:create(0.5,0)
local spawn = cc.Spawn:create(orbitCamera,scaleTo)
local delay = cc.DelayTime:create(1)
--[[
local sequence = cc.Sequence:create(delay,spawn,cc.CallFunc:create(function()
layout:removeFromParent()
end))
layout:runAction(sequence)
]]