Exemplo n.º 1
0
        private void DrawVolumes()
        {
            lines.Clear();

            var count = this.pManager.Instance.Count;

            for (int i = 0; i < count; i++)
            {
                lines.AddRange(Line3D.CreateWiredBox(this.pManager.Instance.GetParticleSystem(i).Emitter.GetBoundingBox()));
            }

            this.pManagerLineDrawer.Instance.SetPrimitives(Color.Red, lines.ToArray());
        }