LiquidFun
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Enumerations | Functions | Variables
b2Particle.h File Reference
#include <Box2D/Common/b2Math.h>
#include <Box2D/Common/b2Settings.h>
#include <Box2D/Common/b2IntrusiveList.h>

Go to the source code of this file.

Classes

class  b2ParticleColor
 Small color object for each particle. More...
 
struct  b2ParticleDef
 
class  b2ParticleHandle
 

Enumerations

enum  b2ParticleFlag {
  b2_waterParticle = 0, b2_zombieParticle = 1 << 1, b2_wallParticle = 1 << 2, b2_springParticle = 1 << 3,
  b2_elasticParticle = 1 << 4, b2_viscousParticle = 1 << 5, b2_powderParticle = 1 << 6, b2_tensileParticle = 1 << 7,
  b2_colorMixingParticle = 1 << 8, b2_destructionListenerParticle = 1 << 9, b2_barrierParticle = 1 << 10, b2_staticPressureParticle = 1 << 11,
  b2_reactiveParticle = 1 << 12, b2_repulsiveParticle = 1 << 13, b2_fixtureContactListenerParticle = 1 << 14, b2_particleContactListenerParticle = 1 << 15,
  b2_fixtureContactFilterParticle = 1 << 16, b2_particleContactFilterParticle = 1 << 17
}
 The particle type. Can be combined with the | operator. More...
 

Functions

int32 b2CalculateParticleIterations (float32 gravity, float32 radius, float32 timeStep)
 A helper function to calculate the optimal number of iterations.
 

Variables

b2ParticleColor b2ParticleColor_zero
 

Enumeration Type Documentation

The particle type. Can be combined with the | operator.

Enumerator
b2_waterParticle 

Water particle.

b2_zombieParticle 

Removed after next simulation step.

b2_wallParticle 

Zero velocity.

b2_springParticle 

With restitution from stretching.

b2_elasticParticle 

With restitution from deformation.

b2_viscousParticle 

With viscosity.

b2_powderParticle 

Without isotropic pressure.

b2_tensileParticle 

With surface tension.

b2_colorMixingParticle 

Mix color between contacting particles.

b2_destructionListenerParticle 

Call b2DestructionListener on destruction.

b2_barrierParticle 

Prevents other particles from leaking.

b2_staticPressureParticle 

Less compressibility.

b2_reactiveParticle 

Makes pairs or triads with other particles.

b2_repulsiveParticle 

With high repulsive force.

b2_fixtureContactListenerParticle 

Call b2ContactListener when this particle is about to interact with a rigid body or stops interacting with a rigid body. This results in an expensive operation compared to using b2_fixtureContactFilterParticle to detect collisions between particles.

b2_particleContactListenerParticle 

Call b2ContactListener when this particle is about to interact with another particle or stops interacting with another particle. This results in an expensive operation compared to using b2_particleContactFilterParticle to detect collisions between particles.

b2_fixtureContactFilterParticle 

Call b2ContactFilter when this particle interacts with rigid bodies.

b2_particleContactFilterParticle 

Call b2ContactFilter when this particle interacts with other particles.