void setToGravity(float scale=1)
void beginOperate(Program *prg)
Perform some initializations. Do not call this method manually.
osg::Vec3 rotateLocalToWorld(const osg::Vec3 &P)
Transform a vector from local to world coordinates, discarding translation (valid only during cull tr...
AccelOperator & operator=(const AccelOperator &)
const osg::Vec3 & getAcceleration() const
Get the acceleration vector.
META_Object(osgParticle, AccelOperator)
ReferenceFrame getReferenceFrame() const
Get the reference frame.
void setAcceleration(const osg::Vec3 &v)
Set the acceleration vector.
void operate(Particle *P, double dt)
Apply the acceleration to a particle. Do not call this method manually.
void addVelocity(const osg::Vec3 &dv)
Add a vector to the velocity vector.