A bounce operator can affect the particle's velocity to make it rebound.
More...
List of all members.
Public Member Functions |
| BounceOperator () |
| BounceOperator (const BounceOperator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) |
| META_Object (osgParticle, BounceOperator) |
void | setFriction (float f) |
| Set the friction.
|
float | getFriction () const |
| Get the friction.
|
void | setResilience (float r) |
| Set the resilience.
|
float | getResilience () const |
| Get the velocity cutoff factor.
|
void | setCutoff (float v) |
| Set the velocity cutoff factor.
|
float | getCutoff () const |
| Get the velocity cutoff factor.
|
Protected Member Functions |
virtual | ~BounceOperator () |
BounceOperator & | operator= (const BounceOperator &) |
virtual void | handleTriangle (const Domain &domain, Particle *P, double dt) |
virtual void | handleRectangle (const Domain &domain, Particle *P, double dt) |
virtual void | handlePlane (const Domain &domain, Particle *P, double dt) |
virtual void | handleSphere (const Domain &domain, Particle *P, double dt) |
virtual void | handleDisk (const Domain &domain, Particle *P, double dt) |
Protected Attributes |
float | _friction |
float | _resilience |
float | _cutoff |
Detailed Description
A bounce operator can affect the particle's velocity to make it rebound.
Refer to David McAllister's Particle System API (http://www.particlesystems.org)
Constructor & Destructor Documentation
osgParticle::BounceOperator::BounceOperator |
( |
| ) |
[inline] |
osgParticle::BounceOperator::BounceOperator |
( |
const BounceOperator & |
copy, |
|
|
const osg::CopyOp & |
copyop = osg::CopyOp::SHALLOW_COPY |
|
) |
| [inline] |
virtual osgParticle::BounceOperator::~BounceOperator |
( |
| ) |
[inline, protected, virtual] |
Member Function Documentation
float osgParticle::BounceOperator::getCutoff |
( |
| ) |
const [inline] |
Get the velocity cutoff factor.
float osgParticle::BounceOperator::getFriction |
( |
| ) |
const [inline] |
float osgParticle::BounceOperator::getResilience |
( |
| ) |
const [inline] |
Get the velocity cutoff factor.
virtual void osgParticle::BounceOperator::handleDisk |
( |
const Domain & |
domain, |
|
|
Particle * |
P, |
|
|
double |
dt |
|
) |
| [protected, virtual] |
virtual void osgParticle::BounceOperator::handlePlane |
( |
const Domain & |
domain, |
|
|
Particle * |
P, |
|
|
double |
dt |
|
) |
| [protected, virtual] |
virtual void osgParticle::BounceOperator::handleRectangle |
( |
const Domain & |
domain, |
|
|
Particle * |
P, |
|
|
double |
dt |
|
) |
| [protected, virtual] |
virtual void osgParticle::BounceOperator::handleSphere |
( |
const Domain & |
domain, |
|
|
Particle * |
P, |
|
|
double |
dt |
|
) |
| [protected, virtual] |
virtual void osgParticle::BounceOperator::handleTriangle |
( |
const Domain & |
domain, |
|
|
Particle * |
P, |
|
|
double |
dt |
|
) |
| [protected, virtual] |
osgParticle::BounceOperator::META_Object |
( |
osgParticle |
, |
|
|
BounceOperator |
|
|
) |
| |
void osgParticle::BounceOperator::setCutoff |
( |
float |
v | ) |
[inline] |
Set the velocity cutoff factor.
void osgParticle::BounceOperator::setFriction |
( |
float |
f | ) |
[inline] |
void osgParticle::BounceOperator::setResilience |
( |
float |
r | ) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following file: