/** * 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 particleSystem.getParticleGroupList(); }
/** * @return the number of particle groups */ public int getParticleGroupCount() { return particleSystem.getParticleGroupCount(); }
/** * @return damping for particles */ public float getParticleDamping() { return particleSystem.getParticleDamping(); }
public void destroyParticlesInGroup(ParticleGroup group, boolean callDestructionListener) { for (int i = group.m_firstIndex; i < group.m_lastIndex; i++) { destroyParticle(i, callDestructionListener); } }
/** * @return the maximum number of particles */ public int getParticleMaxCount() { return particleSystem.getParticleMaxCount(); }
/** * @return the particle gravity scale */ public float getParticleGravityScale() { return particleSystem.getParticleGravityScale(); }
/** * 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) { particleSystem.queryAABB(particleCallback, aabb); }
/** * Set the maximum number of particles. * * @param count number */ public void setParticleMaxCount(int count) { particleSystem.setParticleMaxCount(count); }
/** * Get the particle data. Returns the pointer to the head of the particle data. * * @return particle flags buffer */ public int[] getParticleFlagsBuffer() { return particleSystem.getParticleFlagsBuffer(); }
/** * 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 particle damping */ public void setParticleDamping(float damping) { particleSystem.setParticleDamping(damping); }
/** * 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 particle radius */ public void setParticleRadius(float radius) { particleSystem.setParticleRadius(radius); }
/** * Change the particle gravity scale. Adjusts the effect of the global gravity vector on * particles. Default value is 1.0f. * * @param gravityScale gravity scale */ public void setParticleGravityScale(float gravityScale) { particleSystem.setParticleGravityScale(gravityScale); }
/** * 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 particleSystem.getParticleGroupList(); }
/** * @return the number of particle groups */ public int getParticleGroupCount() { return particleSystem.getParticleGroupCount(); }
/** * @return damping for particles */ public float getParticleDamping() { return particleSystem.getParticleDamping(); }
/** * Destroy a particle. The particle is removed after the next step. * * @param index of the particle to destroy * @param callDestructionListener whether to call the destruction listener just before the particle is destroyed */ public void destroyParticle(int index, boolean callDestructionListener) { particleSystem.destroyParticle(index, callDestructionListener); }
/** * @return the maximum number of particles */ public int getParticleMaxCount() { return particleSystem.getParticleMaxCount(); }
/** * @return the particle gravity scale */ public float getParticleGravityScale() { return particleSystem.getParticleGravityScale(); }
/** * 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) { particleSystem.queryAABB(particleCallback, aabb); }
/** * Set the maximum number of particles. * * @param count number */ public void setParticleMaxCount(int count) { particleSystem.setParticleMaxCount(count); }