Panda3D
|
describes a particle that spins along its z axis. More...
#include "zSpinParticle.h"
Public Member Functions | |
ZSpinParticle () | |
constructor | |
ZSpinParticle (const ZSpinParticle ©) | |
copy constructor | |
virtual | ~ZSpinParticle () |
destructor | |
virtual void | die () |
void | enable_angular_velocity (bool bEnabled) |
PN_stdfloat | get_angular_velocity () const |
bool | get_angular_velocity_enabled () const |
PN_stdfloat | get_final_angle () const |
accessor | |
PN_stdfloat | get_initial_angle () const |
accessor | |
virtual PN_stdfloat | get_theta () const |
for spriteParticleRenderer | |
virtual void | init () |
virtual PhysicsObject * | make_copy () const |
dynamic copier | |
virtual void | output (ostream &out) const |
Write a string representation of this instance to <out>. | |
void | set_angular_velocity (PN_stdfloat v) |
void | set_final_angle (PN_stdfloat t) |
accessor | |
void | set_initial_angle (PN_stdfloat t) |
accessor | |
virtual void | update () |
virtual void | write (ostream &out, int indent=0) const |
Write a string representation of this instance to <out>. |
describes a particle that spins along its z axis.
this is kind of an intermediary class- if you're using a SpriteParticleRenderer and you want your sprites to spin without having them be full-blown oriented (i.e. angry quat math), use this.
Definition at line 28 of file zSpinParticle.h.
ZSpinParticle::ZSpinParticle | ( | ) |
ZSpinParticle::ZSpinParticle | ( | const ZSpinParticle & | copy | ) |
copy constructor
Definition at line 39 of file zSpinParticle.cxx.
ZSpinParticle::~ZSpinParticle | ( | ) | [virtual] |
destructor
Definition at line 54 of file zSpinParticle.cxx.
PN_stdfloat ZSpinParticle::get_final_angle | ( | ) | const [inline] |
accessor
Definition at line 47 of file zSpinParticle.I.
PN_stdfloat ZSpinParticle::get_initial_angle | ( | ) | const [inline] |
accessor
Definition at line 29 of file zSpinParticle.I.
PN_stdfloat ZSpinParticle::get_theta | ( | ) | const [virtual] |
for spriteParticleRenderer
Reimplemented from BaseParticle.
Definition at line 119 of file zSpinParticle.cxx.
PhysicsObject * ZSpinParticle::make_copy | ( | ) | const [virtual] |
dynamic copier
Implements BaseParticle.
Definition at line 63 of file zSpinParticle.cxx.
References ZSpinParticle().
void ZSpinParticle::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from BaseParticle.
Definition at line 130 of file zSpinParticle.cxx.
void ZSpinParticle::set_final_angle | ( | PN_stdfloat | t | ) | [inline] |
accessor
Definition at line 38 of file zSpinParticle.I.
void ZSpinParticle::set_initial_angle | ( | PN_stdfloat | t | ) | [inline] |
accessor
Definition at line 20 of file zSpinParticle.I.
void ZSpinParticle::write | ( | ostream & | out, |
int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from BaseParticle.
Definition at line 143 of file zSpinParticle.cxx.