コード例 #1
0
        private void createObject()
        {
            var graph = new Graph(engine.GetProjectiles(), engine.GetConnectors());

            mesh.Positions       = graph.GetPoints();
            mesh.TriangleIndices = graph.GetTriangles();
        }
コード例 #2
0
        public BridgeVisualization(IEngineWithConnectors engine, Color color)
        {
            this.engine = engine;
            this.color  = color;

            foreach (var proj in engine.GetProjectiles())
            {
                AddObject(new SingleParticle(proj));
            }
        }