Panda3D
Public Member Functions

ZSpinParticle Class Reference

describes a particle that spins along its z axis. More...

#include "zSpinParticle.h"

Inheritance diagram for ZSpinParticle:
BaseParticle PhysicsObject TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 ZSpinParticle ()
 constructor
 ZSpinParticle (const ZSpinParticle &copy)
 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 PhysicsObjectmake_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>.

Detailed Description

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.


Constructor & Destructor Documentation

ZSpinParticle::ZSpinParticle ( )

constructor

Definition at line 24 of file zSpinParticle.cxx.

Referenced by make_copy().

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations