Exemplo n.º 1
0
 private static void PreloadModels(MyStaticAsteroid.MyStaticAsteroidModels models)
 {
     PreloadModel(models.LOD0);
     PreloadModel(models.LOD1);
     PreloadModel(models.LOD2);
 }
Exemplo n.º 2
0
 MyEntity addStaticAsteroid(StringBuilder hudLabel, MyMwcObjectBuilder_StaticAsteroid_TypesEnum staticEnum, ref Vector3 currentPosition, Vector3 forward, MyMeshDrawTechnique? drawTechnique = null, MyMwcVoxelMaterialsEnum? material = null)
 {
     MyStaticAsteroid staticAsteroid = new MyStaticAsteroid();
     MyMwcObjectBuilder_StaticAsteroid objectBuilder = new MyMwcObjectBuilder_StaticAsteroid(staticEnum, material);
     staticAsteroid.Init(hudLabel.ToString(), objectBuilder, Matrix.Identity);
     return addEntity(staticAsteroid, ref currentPosition, forward);
 }