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); }
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); }