void beginOperate(Program *prg)
Perform some initialization. Do not call this method manually.
META_Object(osgParticle, ForceOperator)
osg::Vec3 rotateLocalToWorld(const osg::Vec3 &P)
Transform a vector from local to world coordinates, discarding translation (valid only during cull tr...
void setForce(const osg::Vec3 &f)
Set the force vector.
ReferenceFrame getReferenceFrame() const
Get the reference frame.
const osg::Vec3 & getForce() const
Get the force vector.
ForceOperator & operator=(const ForceOperator &)
void addVelocity(const osg::Vec3 &dv)
Add a vector to the velocity vector.
void operate(Particle *P, double dt)
Apply the force to a particle. Do not call this method manually.