private static void PreloadModels(MyStaticAsteroid.MyStaticAsteroidModels models) { PreloadModel(models.LOD0); PreloadModel(models.LOD1); PreloadModel(models.LOD2); }
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); }