Пример #1
0
        public static void Create( object source, ContextMenuArgs e )
        {
            EntityCreationProperties buildproperties = new EntityCreationProperties( e.MouseX, e.MouseY );

            FractalSplineCylinder newentity = new FractalSplineCylinder();
            buildproperties.WriteToEntity( newentity, "Cylinder" );

            MetaverseClient.GetInstance().worldstorage.AddEntity(newentity);
        }
Пример #2
0
        public static void Create(object source, ContextMenuArgs e)
        {
            EntityCreationProperties buildproperties = new EntityCreationProperties(e.MouseX, e.MouseY);

            FractalSplineBox newentity = new FractalSplineBox();

            buildproperties.WriteToEntity(newentity, "Box");

            MetaverseClient.GetInstance().worldstorage.AddEntity(newentity);
        }
Пример #3
0
        public static void CreateCube( object soure, ContextMenuArgs e )
        {
            EntityCreationProperties buildproperties = new EntityCreationProperties( e.MouseX, e.MouseY );

            SimpleCube newcube = new SimpleCube();
            newcube.pos = buildproperties.pos;
            newcube.rot = buildproperties.rot;
            newcube.scale = new Vector3( 0.2, 0.2, 0.2 );
            newcube.name = "new cube";

            MetaverseClient.GetInstance().worldstorage.AddEntity(newcube);
        }
Пример #4
0
        public static void Create(object source, ContextMenuArgs e)
        {
            EntityCreationProperties buildproperties = new EntityCreationProperties(e.MouseX, e.MouseY);

            SimpleCone prim = new SimpleCone();

            prim.pos   = buildproperties.pos;
            prim.rot   = buildproperties.rot;
            prim.scale = new Vector3(0.2, 0.2, 0.2);
            prim.name  = "new cube";

            MetaverseClient.GetInstance().worldstorage.AddEntity(prim);
        }