Codota Logo
org.jbox2d.particle
Code IndexAdd Codota to your IDE (free)

How to use org.jbox2d.particle

Best Java code snippets using org.jbox2d.particle (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: libgdx/libgdx

 protected VoronoiDiagram.Generator[] getInitializedArray(int length) {
  final VoronoiDiagram.Generator[] ray = new VoronoiDiagram.Generator[length];
  for (int i = 0; i < ray.length; i++) {
   ray[i] = new VoronoiDiagram.Generator();
  }
  return ray;
 }
}
origin: libgdx/libgdx

/**
 * Query the world for all particles that potentially overlap the provided AABB.
 * 
 * @param particleCallback callback for particles.
 * @param aabb the query box.
 */
public void queryAABB(ParticleQueryCallback particleCallback, AABB aabb) {
 m_particleSystem.queryAABB(particleCallback, aabb);
}
origin: libgdx/libgdx

/**
 * Get the world particle group list. With the returned group, use ParticleGroup::GetNext to get
 * the next group in the world list. A NULL group indicates the end of the list.
 * 
 * @return the head of the world particle group list.
 */
public ParticleGroup[] getParticleGroupList() {
 return m_particleSystem.getParticleGroupList();
}
origin: libgdx/libgdx

public void destroyParticlesInGroup(ParticleGroup group, boolean callDestructionListener) {
 for (int i = group.m_firstIndex; i < group.m_lastIndex; i++) {
  destroyParticle(i, callDestructionListener);
 }
}
origin: libgdx/libgdx

/**
 * Get the number of particles.
 * 
 * @return
 */
public int getParticleCount() {
 return m_particleSystem.getParticleCount();
}
origin: libgdx/libgdx

/**
 * Get the maximum number of particles.
 * 
 * @return
 */
public int getParticleMaxCount() {
 return m_particleSystem.getParticleMaxCount();
}
origin: libgdx/libgdx

/**
 * Get the particle radius.
 * 
 * @return
 */
public float getParticleRadius() {
 return m_particleSystem.getParticleRadius();
}
origin: libgdx/libgdx

/**
 * Get the particle gravity scale.
 * 
 * @return
 */
public float getParticleGravityScale() {
 return m_particleSystem.getParticleGravityScale();
}
origin: libgdx/libgdx

/**
 * Set the maximum number of particles.
 * 
 * @param count
 */
public void setParticleMaxCount(int count) {
 m_particleSystem.setParticleMaxCount(count);
}
origin: libgdx/libgdx

/**
 * Ray-cast the world for all particles in the path of the ray. Your callback controls whether you
 * get the closest point, any point, or n-points.
 * 
 * @param particleCallback the particle callback class.
 * @param point1 the ray starting point
 * @param point2 the ray ending point
 */
public void raycast(ParticleRaycastCallback particleCallback, Vec2 point1, Vec2 point2) {
 m_particleSystem.raycast(particleCallback, point1, point2);
}
origin: libgdx/libgdx

/**
 * Get the particle data. @return the pointer to the head of the particle data.
 * 
 * @return
 */
public int[] getParticleFlagsBuffer() {
 return m_particleSystem.getParticleFlagsBuffer();
}
origin: libgdx/libgdx

 /**
  * Compute the kinetic energy that can be lost by damping force
  * 
  * @return
  */
 public float computeParticleCollisionEnergy() {
  return m_particleSystem.computeParticleCollisionEnergy();
 }
}
origin: libgdx/libgdx

/**
 * Change the particle density.
 * 
 * @param density
 */
public void setParticleDensity(float density) {
 m_particleSystem.setParticleDensity(density);
}
origin: libgdx/libgdx

/**
 * Damping is used to reduce the velocity of particles. The damping parameter can be larger than
 * 1.0f but the damping effect becomes sensitive to the time step when the damping parameter is
 * large.
 * 
 * @param damping
 */
public void setParticleDamping(float damping) {
 m_particleSystem.setParticleDamping(damping);
}
origin: libgdx/libgdx

/**
 * Get damping for particles
 * 
 * @return
 */
public float getParticleDamping() {
 return m_particleSystem.getParticleDamping();
}
origin: libgdx/libgdx

/**
 * Change the particle radius. You should set this only once, on world start. If you change the
 * radius during execution, existing particles may explode, shrink, or behave unexpectedly.
 * 
 * @param radius
 */
public void setParticleRadius(float radius) {
 m_particleSystem.setParticleRadius(radius);
}
origin: libgdx/libgdx

/**
 * Get the particle density.
 * 
 * @return
 */
public float getParticleDensity() {
 return m_particleSystem.getParticleDensity();
}
origin: libgdx/libgdx

/**
 * Set a buffer for particle data.
 * 
 * @param buffer is a pointer to a block of memory.
 * @param size is the number of values in the block.
 */
public void setParticleFlagsBuffer(int[] buffer, int capacity) {
 m_particleSystem.setParticleFlagsBuffer(buffer, capacity);
}
origin: libgdx/libgdx

public VoronoiDiagram(int generatorCapacity) {
 m_generatorBuffer = new Generator[generatorCapacity];
 for (int i = 0; i < generatorCapacity; i++) {
  m_generatorBuffer[i] = new Generator();
 }
 m_generatorCount = 0;
 m_countX = 0;
 m_countY = 0;
 m_diagram = null;
}
origin: libgdx/libgdx

/**
 * Destroy a particle. The particle is removed after the next step.
 * 
 * @param Index of the particle to destroy.
 * @param Whether to call the destruction listener just before the particle is destroyed.
 */
public void destroyParticle(int index, boolean callDestructionListener) {
 m_particleSystem.destroyParticle(index, callDestructionListener);
}
org.jbox2d.particle

Most used classes

  • ParticleColor
    Small color object for each particle
  • ParticleGroup
  • ParticleSystem$DestroyParticlesInShapeCallback
  • ParticleSystem$JoinParticleGroupsCallback
  • ParticleSystem$NewIndices
  • ParticleSystem$ParticleBufferInt,
  • ParticleSystem$Test,
  • ParticleSystem,
  • StackQueue,
  • VoronoiDiagram$Generator,
  • VoronoiDiagram$VoronoiDiagramCallback,
  • VoronoiDiagram$VoronoiDiagramTask,
  • VoronoiDiagram,
  • ParticleGroupDef,
  • ParticleDef
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now