Ejemplo n.º 1
0
 /// <summary>
 /// Update the engine scale and position for scale.
 /// </summary>
 private void updateEnginePositionAndScale()
 {
     engineModels.setScale(currentEngineScale);
     engineModels.root.localRotation = this.invertEngines ? Quaternion.Euler(180, 0, 0) : Quaternion.identity;
     engineModels.setPosition(-currentHeight * 0.5f + engineModels.moduleHeight * 0.5f);
     engineModels.updateModelMeshes();
     engineModels.renameEngineThrustTransforms(engineThrustTransformName);
 }