Package com.badlogic.gdx.graphics.g3d.particles.values

Examples of com.badlogic.gdx.graphics.g3d.particles.values.SpawnShapeValue


    setCurrentSpawnData(influencer.spawnShapeValue);
    shapeCombo.setSelectedItem(spawnShapeToString(influencer.spawnShapeValue));
  }

  private void setCurrentSpawnData (SpawnShapeValue spawnShapeValue) {
    SpawnShapeValue local = null;
    if(spawnShapeValue instanceof PointSpawnShapeValue)
      local = pointSpawnShapeValue;
    else if(spawnShapeValue instanceof LineSpawnShapeValue)
      local = lineSpawnShapeValue;
    else if(spawnShapeValue instanceof RectangleSpawnShapeValue)
      local = rectangleSpawnShapeValue;
    else if(spawnShapeValue instanceof EllipseSpawnShapeValue)
      local = ellipseSpawnShapeValue;
    else if(spawnShapeValue instanceof CylinderSpawnShapeValue)
      local = cylinderSpawnShapeValue;
    if(spawnShapeValue instanceof UnweightedMeshSpawnShapeValue)
      local = meshSpawnShapeValue;
    else if(spawnShapeValue instanceof WeightMeshSpawnShapeValue)
      local = weightMeshSpawnShapeValue;
    local.load(spawnShapeValue);
  }
View Full Code Here


  }

  @Override
  public void onTemplateChecked (Model model, boolean isChecked) {
    //Update the shapes
    SpawnShapeValue shapeValue = null;
    Mesh mesh = model.meshes.get(0);
    weightMeshSpawnShapeValue.setMesh(mesh, model);
    meshSpawnShapeValue.setMesh(mesh, model);
    if(shapeCombo.getSelectedItem() == SPAWN_SHAPE_WEIGHT_MESH){
      SpawnInfluencer influencer = (SpawnInfluencer)editor.getEmitter().findInfluencer(SpawnInfluencer.class);
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.g3d.particles.values.SpawnShapeValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.