15 #ifndef OSGPARTICLE_RADIAL_SHOOTER
16 #define OSGPARTICLE_RADIAL_SHOOTER 1
18 #include <osgParticle/Shooter>
19 #include <osgParticle/Particle>
20 #include <osgParticle/range>
97 _theta_range(0, 0.5f*
osg::
PI_4),
98 _phi_range(0, 2*
osg::
PI),
106 _theta_range(copy._theta_range),
107 _phi_range(copy._phi_range),
108 _speed_range(copy._speed_range),
109 _rot_speed_range(copy._rot_speed_range)
130 return _rot_speed_range;
168 _rot_speed_range = r;
185 speed * sinf(theta) * cosf(phi),
186 speed * sinf(theta) * sinf(phi),
const rangef & getPhiRange() const
Get the range of possible values for phi angle.
RadialShooter & operator=(const RadialShooter &)
META_Object(osgParticle, RadialShooter)
ValueType maximum
Higher bound.
void setAngularVelocity(const osg::Vec3 &v)
ValueType get_random() const
Get a random value between min and max.
void setVelocity(const osg::Vec3 &v)
const rangef & getInitialSpeedRange() const
Get the range of possible values for initial speed of particles.
void shoot(Particle *P) const
Shoot a particle. Do not call this method manually.
void setInitialSpeedRange(const rangef &r)
Set the range of possible values for initial speed of particles.
const rangef & getThetaRange() const
Get the range of possible values for theta angle.
ValueType minimum
Lower bound.
const rangev3 & getInitialRotationalSpeedRange() const
Get the range of possible values for initial rotational speed of particles.
void setInitialRotationalSpeedRange(const rangev3 &r)
Set the range of possible values for initial rotational speed of particles.
void setPhiRange(const rangef &r)
Set the range of possible values for phi angle.
void setThetaRange(const rangef &r)
Set the range of possible values for theta angle.