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

Examples of com.badlogic.gdx.graphics.g3d.particles.influencers.DynamicsInfluencer


    EllipseSpawnShapeValue spawnShapeValue = new EllipseSpawnShapeValue();
    spawnShapeValue.setDimensions(1, 1, 1);
    SpawnInfluencer spawnSource = new SpawnInfluencer(spawnShapeValue);

    //Velocity
    DynamicsInfluencer velocityInfluencer = new DynamicsInfluencer();

    //Directional
    DynamicsModifier.CentripetalAcceleration velocityValue = new DynamicsModifier.CentripetalAcceleration();
    velocityValue.strengthValue.setHigh(5, 11);
    velocityValue.strengthValue.setActive(true);
View Full Code Here


    colorInfluencer.alphaValue.setHigh(1);
    colorInfluencer.alphaValue.setTimeline(new float[] {0, 0.5f, 0.8f, 1});
    colorInfluencer.alphaValue.setScaling(new float[] {0, 0.15f, 0.5f, 0});
   
    //Velocity
    DynamicsInfluencer velocityInfluencer = new DynamicsInfluencer();

    //Directional
    DynamicsModifier.PolarAcceleration velocityValue = new DynamicsModifier.PolarAcceleration();
    velocityValue.phiValue.setHigh(-35, 35);
    velocityValue.phiValue.setActive(true);
View Full Code Here

    //Spawn
    PointSpawnShapeValue pointSpawnShapeValue = new PointSpawnShapeValue();
    SpawnInfluencer spawnSource = new SpawnInfluencer(pointSpawnShapeValue);

    //Velocity
    DynamicsInfluencer velocityInfluencer = new DynamicsInfluencer();

    //Directional
    DynamicsModifier.PolarAcceleration velocityValue = new DynamicsModifier.PolarAcceleration();
    velocityValue.phiValue.setHigh(-35, 35);
    velocityValue.phiValue.setActive(true);
View Full Code Here

    scaleInfluencer.value.setLow(0);
    scaleInfluencer.value.setTimeline(new float[]{0,1});
    scaleInfluencer.value.setScaling(new float[]{1, 0});
   
    //Velocity
    DynamicsInfluencer velocityInfluencer = new DynamicsInfluencer();

    //Directional
    DynamicsModifier.CentripetalAcceleration velocityValue = new DynamicsModifier.CentripetalAcceleration();
    velocityValue.strengthValue.setHigh(5, 10);
    velocityValue.strengthValue.setActive(true);
View Full Code Here

    addContent(i++, 0, emptyPanel);
  }

  protected void velocityChecked (int index, boolean isChecked) {
    ParticleController controller = editor.getEmitter();
    DynamicsInfluencer influencer = (DynamicsInfluencer)controller.findInfluencer(DynamicsInfluencer.class);   
    influencer.velocities.clear();
    velocities.get(index).isActive = isChecked;
    for(VelocityWrapper wrapper : velocities){
      if(wrapper.isActive)
        influencer.velocities.add(wrapper.velocityValue);
View Full Code Here

    int row = velocityTable.getSelectedRow();
    if (row == -1) return;
   
    //Remove the velocity from the table
    ParticleController controller = editor.getEmitter();
    DynamicsInfluencer influencer = (DynamicsInfluencer)controller.findInfluencer(DynamicsInfluencer.class);
    influencer.velocities.removeValue(velocities.removeIndex(row).velocityValue, true);
    velocityTableModel.removeRow(row);
   
    //Restart the effect and reinit the controller
    editor.restart();
View Full Code Here

  }

  protected void createVelocity (Object selectedItem) {
    //Add the velocity to the table and to the influencer
    ParticleController controller = editor.getEmitter();
    DynamicsInfluencer influencer = (DynamicsInfluencer)controller.findInfluencer(DynamicsInfluencer.class);
    VelocityWrapper wrapper = new VelocityWrapper(createVelocityValue(selectedItem), true);
    velocities.add(wrapper);
    influencer.velocities.add(wrapper.velocityValue);
    int index = velocities.size-1;
    velocityTableModel.addRow(new Object[] {"Velocity "+index, true});
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.g3d.particles.influencers.DynamicsInfluencer

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.