15#ifndef OSGPARTICLE_ORBITOPERATOR
16#define OSGPARTICLE_ORBITOPERATOR
89 float length = dir.
length();
93 (length * (
_epsilon+length*length))) );
Definition OrbitOperator:30
void setMagnitude(float mag)
Set the acceleration scale.
Definition OrbitOperator:50
float _epsilon
Definition OrbitOperator:80
void beginOperate(Program *prg)
Perform some initializations. Do not call this method manually.
Definition OrbitOperator:97
OrbitOperator & operator=(const OrbitOperator &)
Definition OrbitOperator:75
float _maxRadius
Definition OrbitOperator:81
virtual ~OrbitOperator()
Definition OrbitOperator:74
void operate(Particle *P, double dt)
Apply the acceleration to a particle. Do not call this method manually.
Definition OrbitOperator:86
osg::Vec3 _xf_center
Definition OrbitOperator:78
void setEpsilon(float eps)
Set the acceleration epsilon.
Definition OrbitOperator:56
const osg::Vec3 & getCenter() const
Get the center of orbit.
Definition OrbitOperator:47
float getMagnitude() const
Get the acceleration scale.
Definition OrbitOperator:53
OrbitOperator(const OrbitOperator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition OrbitOperator:36
void setMaxRadius(float max)
Set max radius between the center and the particle.
Definition OrbitOperator:62
osg::Vec3 _center
Definition OrbitOperator:77
float getEpsilon() const
Get the acceleration epsilon.
Definition OrbitOperator:59
META_Object(osgParticle, OrbitOperator)
OrbitOperator()
Definition OrbitOperator:32
float getMaxRadius() const
Get max radius between the center and the particle.
Definition OrbitOperator:65
void setCenter(const osg::Vec3 &c)
Set the center of orbit.
Definition OrbitOperator:44
float _magnitude
Definition OrbitOperator:79
@ RELATIVE_RF
Definition ParticleProcessor:42
ReferenceFrame getReferenceFrame() const
Get the reference frame.
Definition ParticleProcessor:179
osg::Vec3 transformLocalToWorld(const osg::Vec3 &P)
Transform a point from local to world coordinates (valid only during cull traversal).
Definition ParticleProcessor:305
void addVelocity(const osg::Vec3 &dv)
Add a vector to the velocity vector.
Definition Particle:493
const osg::Vec3 & getPosition() const
Get the position vector.
Definition Particle:403
Definition osgParticle/Program:36
@ SHALLOW_COPY
Definition CopyOp:47
value_type length() const
Definition Vec3f:176
Definition AccelOperator:27