void Update()
    {
        polarCoord.Set(pRadius, pAzimuth, pHeight, basePlane);
        polarCylindrical.position = polarCoord;

        sphericalCoord.Set(sRadius, sAzimuth, sPolar);
        spherical.position = sphericalCoord;
    }
Beispiel #2
0
        public override void Update()
        {
            base.Update();

            Spherical s = new Spherical();

            foreach (var l in lights)
            {
                s.Set(l.Node.Position - center);
                s.el.z += 0.001f;
                s.Restrict();
                var v = s.GetVec();
                l.Node.Position = center + v;
            }
        }