#include <b2ParticleGroup.h>
Public Attributes | |
uint32 | flags |
The particle-behavior flags. | |
uint32 | groupFlags |
The group-construction flags. | |
b2Vec2 | position |
float32 | angle |
b2Vec2 | linearVelocity |
The linear velocity of the group's origin in world co-ordinates. | |
float32 | angularVelocity |
The angular velocity of the group. | |
b2ParticleColor | color |
The color of all particles in the group. | |
float32 | strength |
The strength of cohesion among the particles in a group with flag b2_elasticParticle or b2_springParticle. | |
const b2Shape * | shape |
Shape containing the particle group. | |
bool | destroyAutomatically |
If true, destroy the group automatically after its last particle has been destroyed. | |
void * | userData |
Use this to store application-specific group data. | |
A particle group definition holds all the data needed to construct a particle group. You can safely re-use these definitions.
float32 b2ParticleGroupDef::angle |
The world angle of the group in radians. Rotates the shape by an angle equal to the value of angle.
b2Vec2 b2ParticleGroupDef::position |
The world position of the group. Moves the group's shape a distance equal to the value of position.