Ejemplo n.º 1
0
        public static OrbitsRotationGameObject Create(IEntityManager manager)
        {
            var geo = GeometryBuilder.BuildRotationOrbits(100, Vector3.Zero);
            var tag = manager
                      .CreateEntity(new ElementTag("OrbitsRotationGameObject"))
                      .AddComponent(geo)
                      .AddComponent(D3DLineVertexRenderComponent.AsLineStrip())
                      .AddComponent(new TransformComponent())
                      .Tag;

            return(new OrbitsRotationGameObject());
        }