21 #include <Box2D/Common/b2Math.h>
30 b2_zombieParticle = 1 << 1,
31 b2_wallParticle = 1 << 2,
32 b2_springParticle = 1 << 3,
33 b2_elasticParticle = 1 << 4,
34 b2_viscousParticle = 1 << 5,
35 b2_powderParticle = 1 << 6,
36 b2_tensileParticle = 1 << 7,
37 b2_colorMixingParticle = 1 << 8,
38 b2_destructionListener = 1 << 9,
59 return !r && !g && !b && !a;
68 void Set(int32 r_, int32 g_, int32 b_, int32 a_)
93 color = b2ParticleColor_zero;
bool IsZero() const
Definition: b2Particle.h:57
b2Vec2 velocity
The linear velocity of the particle in world co-ordinates.
Definition: b2Particle.h:106
Color for debug drawing. Each value has the range [0,1].
Definition: b2Draw.h:26
b2Vec2 position
The world position of the particle.
Definition: b2Particle.h:103
Definition: b2Particle.h:85
void * userData
Use this to store application-specific body data.
Definition: b2Particle.h:112
b2ParticleColor color
The color of the particle.
Definition: b2Particle.h:109
uint32 flags
Definition: b2Particle.h:100
b2ParticleColor(int32 r, int32 g, int32 b, int32 a)
Definition: b2Particle.h:48
Small color object for each particle.
Definition: b2Particle.h:42
void Set(int32 r_, int32 g_, int32 b_, int32 a_)
Definition: b2Particle.h:68
A 2D column vector.
Definition: b2Math.h:64
b2Color GetColor() const
Definition: b2Particle.cpp:31