Inheritance diagram for osgParticle::AccelOperator:
Public Member Functions | |
AccelOperator () | |
AccelOperator (const AccelOperator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgParticle, AccelOperator) | |
const osg::Vec3 & | getAcceleration () const |
Get the acceleration vector. | |
void | setAcceleration (const osg::Vec3 &v) |
Set the acceleration vector. | |
void | setToGravity (float scale=1) |
Quickly set the acceleration vector to the gravity on earth (0, 0, -9.81). | |
void | operate (Particle *P, double dt) |
Apply the acceleration to a particle. Do not call this method manually. | |
void | beginOperate (Program *prg) |
Perform some initializations. Do not call this method manually. | |
Protected Member Functions | |
virtual | ~AccelOperator () |
AccelOperator & | operator= (const AccelOperator &) |
|
|
|
|
|
|
|
Perform some initializations. Do not call this method manually.
Reimplemented from osgParticle::Operator. |
|
Get the acceleration vector.
|
|
|
|
Apply the acceleration to a particle. Do not call this method manually.
Implements osgParticle::Operator. |
|
|
|
Set the acceleration vector.
|
|
Quickly set the acceleration vector to the gravity on earth (0, 0, -9.81).
The acceleration will be multiplied by the |