private Entity getEntity(ModelObjectGraphSimulator.Vertex v) { if (!entities.ContainsKey(v)) { var ent = new Entity(); ent.Mesh = UtilityMeshes.CreateMeshWithText(0.4f, v.ModelObject.GetType().Name, TW.Graphics); entities[v] = ent; TW.Data.Get <Data>().OwnedEntities.Add(ent); } return(entities[v]); }
void g_VertexAdded(ModelObjectGraphSimulator.Vertex vertex) { vertex.Position = seeder.NextVector3(-MathHelper.One.xna(), MathHelper.One.xna()).dx(); }