14 #ifndef ZSPINPARTICLE_H 15 #define ZSPINPARTICLE_H 34 virtual void update();
39 INLINE
void set_initial_angle(PN_stdfloat t);
40 INLINE PN_stdfloat get_initial_angle()
const;
42 INLINE
void set_final_angle(PN_stdfloat t);
43 INLINE PN_stdfloat get_final_angle()
const;
47 INLINE
void set_angular_velocity(PN_stdfloat v);
48 INLINE PN_stdfloat get_angular_velocity()
const;
50 INLINE
void enable_angular_velocity(
bool bEnabled);
51 INLINE
bool get_angular_velocity_enabled()
const;
53 virtual void output(std::ostream &out)
const;
54 virtual void write(std::ostream &out,
int indent=0)
const;
57 PN_stdfloat _initial_angle;
58 PN_stdfloat _final_angle;
59 PN_stdfloat _cur_angle;
60 PN_stdfloat _angular_velocity;
61 bool _bUseAngularVelocity;
66 #endif // ZSPINPARTICLE_H virtual PhysicsObject * make_copy() const =0
dynamic copy.
A body on which physics will be applied.
describes a particle that spins along its z axis.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
virtual PN_stdfloat get_theta() const
for spriteParticleRenderer
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
An individual, physically-modelable particle abstract base class.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.