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)
float get_angular_velocity () const
bool get_angular_velocity_enabled () const
float get_final_angle () const
 accessor
float get_initial_angle () const
 accessor
virtual float 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 (float v)
void set_final_angle (float t)
 accessor
void set_initial_angle (float 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 23 of file zSpinParticle.cxx.

Referenced by make_copy().

ZSpinParticle::ZSpinParticle ( const ZSpinParticle copy)

copy constructor

Definition at line 38 of file zSpinParticle.cxx.

ZSpinParticle::~ZSpinParticle ( ) [virtual]

destructor

Definition at line 53 of file zSpinParticle.cxx.


Member Function Documentation

float ZSpinParticle::get_final_angle ( ) const [inline]

accessor

Definition at line 47 of file zSpinParticle.I.

float ZSpinParticle::get_initial_angle ( ) const [inline]

accessor

Definition at line 29 of file zSpinParticle.I.

float ZSpinParticle::get_theta ( ) const [virtual]

for spriteParticleRenderer

Reimplemented from BaseParticle.

Definition at line 118 of file zSpinParticle.cxx.

PhysicsObject * ZSpinParticle::make_copy ( ) const [virtual]

dynamic copier

Implements BaseParticle.

Definition at line 62 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 129 of file zSpinParticle.cxx.

void ZSpinParticle::set_final_angle ( float  t) [inline]

accessor

Definition at line 38 of file zSpinParticle.I.

void ZSpinParticle::set_initial_angle ( float  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 142 of file zSpinParticle.cxx.


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