Cascade.Behaviors.Spin.Update C# (CSharp) Метод

Update() публичный Метод

public Update ( Particle part ) : void
part Particle
Результат void
        public override void Update(Particle part)
        {
            if (!start)
            {
                pos = part.Pos;
                start = true;
            }
            pos += part.Speed * Global.Speed;
            phase += phaseSpeed * Global.Speed;
            Vector3 x = new Vector3(0, MyMath.LengthDirX(radius.X, phase.X), MyMath.LengthDirY(radius.X, phase.X));
            Vector3 y = new Vector3(MyMath.LengthDirX(radius.Y, phase.Y), 0, MyMath.LengthDirY(radius.Y, phase.Y));
            Vector3 z = new Vector3(MyMath.LengthDirX(radius.Z, phase.Z), MyMath.LengthDirY(radius.Z, phase.Z), 0);
            part.Pos = pos + x + y + z;
            base.Update(part);
        }
    }