A group of particles. These are created via b2World::CreateParticleGroup. More...
#include <b2ParticleGroup.h>
Public Member Functions | |
b2ParticleGroup * | GetNext () |
Get the next particle group from the list in b2_World. | |
const b2ParticleGroup * | GetNext () const |
int32 | GetParticleCount () const |
Get the number of particles. | |
int32 | GetBufferIndex () const |
Get the offset of this group in the global particle buffer. | |
int32 | GetGroupFlags () const |
Get the construction flags for the group. | |
void | SetGroupFlags (int32 flags) |
Set the construction flags for the group. | |
float32 | GetMass () const |
Get the total mass of the group: the sum of all particles in it. | |
float32 | GetInertia () const |
Get the moment of inertia for the group. | |
b2Vec2 | GetCenter () const |
Get the center of gravity for the group. | |
b2Vec2 | GetLinearVelocity () const |
Get the linear velocity of the group. | |
float32 | GetAngularVelocity () const |
Get the angular velocity of the group. | |
const b2Transform & | GetTransform () const |
const b2Vec2 & | GetPosition () const |
float32 | GetAngle () const |
void * | GetUserData () const |
Get the user data pointer that was provided in the group definition. | |
void | SetUserData (void *data) |
Set the user data. Use this to store your application specific data. | |
Friends | |
class | b2ParticleSystem |
A group of particles. These are created via b2World::CreateParticleGroup.
float32 b2ParticleGroup::GetAngle | ( | ) | const |
Get the rotational angle of the particle group as a whole. Used only with groups of rigid particles.
const b2Vec2 & b2ParticleGroup::GetPosition | ( | ) | const |
Get position of the particle group as a whole. Used only with groups of rigid particles.
const b2Transform & b2ParticleGroup::GetTransform | ( | ) | const |
Get the position of the group's origin and rotation. Used only with groups of rigid particles.