LiquidFun
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
Public Member Functions | Friends | List of all members
b2ParticleGroup Class Reference

A group of particles. These are created via b2World::CreateParticleGroup. More...

#include <b2ParticleGroup.h>

Public Member Functions

b2ParticleGroupGetNext ()
 Get the next particle group from the list in b2_World.
 
const b2ParticleGroupGetNext () 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 b2TransformGetTransform () const
 
const b2Vec2GetPosition () 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
 

Detailed Description

A group of particles. These are created via b2World::CreateParticleGroup.

Member Function Documentation

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.


The documentation for this class was generated from the following files: