/// <summary> /// 物体做极坐标运动 /// <para>bullet 敌机子弹</para> /// <para>float radius 起始半径</para> /// <para>float angle 起始角度</para> /// <para>float deltaR 半径增量</para> /// <para>float omega 角速度</para> /// </summary> /// <param name="luaState"></param> /// <returns></returns> public static int EnemyBulletSetCurvedParas(ILuaState luaState) { EnemyBulletBase bullet = luaState.ToUserData(-5) as EnemyBulletBase; float radius = (float)luaState.ToNumber(-4); float angle = (float)luaState.ToNumber(-3); float deltaR = (float)luaState.ToNumber(-2); float omega = (float)luaState.ToNumber(-1); luaState.Pop(5); bullet.SetPolarParas(radius, angle, deltaR, omega); return(0); }