@Override public SpawnShapeValue copy () { return new UnweightedMeshSpawnShapeValue(this); }
public UnweightedMeshSpawnShapeValue (UnweightedMeshSpawnShapeValue value) { super(value); load(value); }
ellipseSpawnShapeValue = new EllipseSpawnShapeValue(); cylinderSpawnShapeValue = new CylinderSpawnShapeValue(); meshSpawnShapeValue = new UnweightedMeshSpawnShapeValue(); weightMeshSpawnShapeValue = new WeightMeshSpawnShapeValue(); ellipseSpawnShapeValue.setActive(true); cylinderSpawnShapeValue.setActive(true); meshSpawnShapeValue.setActive(true); weightMeshSpawnShapeValue.setActive(true);
@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); influencer.spawnShapeValue = weightMeshSpawnShapeValue; } else if(shapeCombo.getSelectedItem() == SPAWN_SHAPE_MESH){ SpawnInfluencer influencer = (SpawnInfluencer)editor.getEmitter().findInfluencer(SpawnInfluencer.class); influencer.spawnShapeValue = meshSpawnShapeValue; } editor.restart(); }
ellipseSpawnShapeValue = new EllipseSpawnShapeValue(); cylinderSpawnShapeValue = new CylinderSpawnShapeValue(); meshSpawnShapeValue = new UnweightedMeshSpawnShapeValue(); weightMeshSpawnShapeValue = new WeightMeshSpawnShapeValue(); ellipseSpawnShapeValue.setActive(true); cylinderSpawnShapeValue.setActive(true); meshSpawnShapeValue.setActive(true); weightMeshSpawnShapeValue.setActive(true);
@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); influencer.spawnShapeValue = weightMeshSpawnShapeValue; } else if(shapeCombo.getSelectedItem() == SPAWN_SHAPE_MESH){ SpawnInfluencer influencer = (SpawnInfluencer)editor.getEmitter().findInfluencer(SpawnInfluencer.class); influencer.spawnShapeValue = meshSpawnShapeValue; } editor.restart(); }
ellipseSpawnShapeValue = new EllipseSpawnShapeValue(); cylinderSpawnShapeValue = new CylinderSpawnShapeValue(); meshSpawnShapeValue = new UnweightedMeshSpawnShapeValue(); weightMeshSpawnShapeValue = new WeightMeshSpawnShapeValue(); ellipseSpawnShapeValue.setActive(true); cylinderSpawnShapeValue.setActive(true); meshSpawnShapeValue.setActive(true); weightMeshSpawnShapeValue.setActive(true);
@Override public SpawnShapeValue copy () { return new UnweightedMeshSpawnShapeValue(this); }
public UnweightedMeshSpawnShapeValue (UnweightedMeshSpawnShapeValue value) { super(value); load(value); }
@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); influencer.spawnShapeValue = weightMeshSpawnShapeValue; } else if(shapeCombo.getSelectedItem() == SPAWN_SHAPE_MESH){ SpawnInfluencer influencer = (SpawnInfluencer)editor.getEmitter().findInfluencer(SpawnInfluencer.class); influencer.spawnShapeValue = meshSpawnShapeValue; } editor.restart(); }
@Override public SpawnShapeValue copy () { return new UnweightedMeshSpawnShapeValue(this); }
public UnweightedMeshSpawnShapeValue (UnweightedMeshSpawnShapeValue value) { super(value); load(value); }