Пример #1
0
        public void TransformEntities()
        {
            zzg.Matrix3d mat = zzg.Matrix3d.Displacement(mBase.GetVectorTo(mLocation));

            foreach (zzd.Entity ent in mEntities)
            {
                ent.TransformBy(mat);
            }
        }
Пример #2
0
        protected override bool WorldDraw(zzgr.WorldDraw draw)
        {
            zzg.Matrix3d mat = zzg.Matrix3d.Displacement(mBase.GetVectorTo(mLocation));

            zzgr.WorldGeometry geo = draw.Geometry;
            if (geo != null)
            {
                geo.PushModelTransform(mat);

                foreach (zzd.Entity ent in mEntities)
                {
                    geo.Draw(ent);
                }

                geo.PopModelTransform();
            }

            return(true);
        }