コード例 #1
0
ファイル: SimpleCube.cs プロジェクト: hughperkins/osmp-cs
        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);
        }
コード例 #2
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);
        }