23 _initial_angle = 0.0f;
25 _initial_angle_spread = 0.0f;
26 _final_angle_spread = 0.0f;
27 _angular_velocity = 0.0f;
28 _angular_velocity_spread = 0.0f;
29 _bUseAngularVelocity =
false;
38 _initial_angle = copy._initial_angle;
39 _final_angle = copy._final_angle;
40 _initial_angle_spread = copy._initial_angle_spread;
41 _final_angle_spread = copy._final_angle_spread;
42 _angular_velocity = copy._angular_velocity;
43 _angular_velocity_spread = copy._angular_velocity_spread;
44 _bUseAngularVelocity = copy._bUseAngularVelocity;
58 alloc_particle()
const {
65 void ZSpinParticleFactory::
71 zsp->set_angular_velocity(_angular_velocity + SPREAD(_angular_velocity_spread));
72 zsp->enable_angular_velocity(_bUseAngularVelocity);
81 out<<
"ZSpinParticleFactory";
91 out.width(
indent); out<<
""; out<<
"ZSpinParticleFactory:\n";
92 out.width(
indent+2); out<<
""; out<<
"_initial_angle "<<_initial_angle<<
"\n";
93 out.width(
indent+2); out<<
""; out<<
"_initial_angle_spread "<<_initial_angle_spread<<
"\n";
94 out.width(
indent+2); out<<
""; out<<
"_final_angle "<<_final_angle<<
"\n";
95 out.width(
indent+2); out<<
""; out<<
"_final_angle_spread "<<_final_angle_spread<<
"\n";
96 out.width(
indent+2); out<<
""; out<<
"_angular_velocity "<<_angular_velocity<<
"\n";
97 out.width(
indent+2); out<<
""; out<<
"_angular_velocity_spread "<<_angular_velocity_spread<<
"\n";
98 out.width(
indent+2); out<<
""; out<<
"_bUseAngularVelocity "<<_bUseAngularVelocity<<
"\n";
void set_initial_angle(PN_stdfloat t)
accessor
void set_final_angle(PN_stdfloat t)
accessor
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Pure Virtual base class for creating particles.
describes a particle that spins along its z axis.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
ZSpinParticleFactory()
constructor
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An individual, physically-modelable particle abstract base class.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
virtual ~ZSpinParticleFactory()
destructor