APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.graphics.g3d.particles.influencers

public Class DynamicsInfluencer

extends Influencer
Class Inheritance
Imports
java.util.Arrays, com.badlogic.gdx.graphics.g3d.particles.ParallelArray.FloatChannel, .ParticleChannels, .ParticleController, com.badlogic.gdx.math.MathUtils, com.badlogic.gdx.utils.Array, .Json, .JsonValue

It's an Influencer which controls the particles dynamics (movement, rotations).
Author
Inferno

Field Summary

Modifier and TypeField and Description
private ParallelArray.FloatChannel
private ParallelArray.FloatChannel
pack-priv boolean
pack-priv boolean
pack-priv boolean
private ParallelArray.FloatChannel
private ParallelArray.FloatChannel
private ParallelArray.FloatChannel
public Array<DynamicsModifier>

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public void
activateParticles(int startIndex, int count)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.activateParticles.

Called to initialize new emitted particles.

public void
allocateChannels()

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.allocateChannels.

Called during initialization to allocate additional particles channels

public DynamicsInfluencer
public void
public void
public void
public void
update()

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.update.

Called to execute the component behavior.

public void

Field Detail

accellerationChannelback to summary
private ParallelArray.FloatChannel accellerationChannel
angularVelocityChannelback to summary
private ParallelArray.FloatChannel angularVelocityChannel
has2dAngularVelocityback to summary
pack-priv boolean has2dAngularVelocity
has3dAngularVelocityback to summary
pack-priv boolean has3dAngularVelocity
hasAccelerationback to summary
pack-priv boolean hasAcceleration
positionChannelback to summary
private ParallelArray.FloatChannel positionChannel
previousPositionChannelback to summary
private ParallelArray.FloatChannel previousPositionChannel
rotationChannelback to summary
private ParallelArray.FloatChannel rotationChannel
velocitiesback to summary
public Array<DynamicsModifier> velocities

Constructor Detail

DynamicsInfluencerback to summary
public DynamicsInfluencer()
DynamicsInfluencerback to summary
public DynamicsInfluencer(DynamicsModifier... velocities)
DynamicsInfluencerback to summary
public DynamicsInfluencer(DynamicsInfluencer velocityInfluencer)

Method Detail

activateParticlesback to summary
public void activateParticles(int startIndex, int count)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.activateParticles.

Doc from com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.activateParticles.

Called to initialize new emitted particles.

allocateChannelsback to summary
public void allocateChannels()

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.allocateChannels.

Doc from com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.allocateChannels.

Called during initialization to allocate additional particles channels

Annotations
@Override
copyback to summary
public DynamicsInfluencer copy()

Implements abstract com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.copy.

Annotations
@Override
initback to summary
public void init()

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.init.

Doc from com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.init.

Called once during intialization

Annotations
@Override
readback to summary
public void read(Json json, JsonValue jsonData)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.read.

Implements com.badlogic.gdx.utils.Json.Serializable.read.

Annotations
@Override
setback to summary
public void set(ParticleController particleController)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.set.

Annotations
@Override
updateback to summary
public void update()

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.update.

Doc from com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.update.

Called to execute the component behavior.

writeback to summary
public void write(Json json)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.write.

Implements com.badlogic.gdx.utils.Json.Serializable.write.

Annotations
@Override