Panda3D
Public Member Functions

OrientedParticle Class Reference

Describes a particle that has angular characteristics (velocity, orientation). More...

#include "orientedParticle.h"

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

List of all members.

Public Member Functions

 OrientedParticle (int lifespan=0, bool alive=false)
 simple constructor
 OrientedParticle (const OrientedParticle &copy)
 copy constructor
virtual ~OrientedParticle ()
 simple destructor
virtual void die ()
 particle death routine
virtual void init ()
 particle init routine
virtual PhysicsObjectmake_copy () const
 simple destructor
virtual void output (ostream &out) const
 Write a string representation of this instance to <out>.
void set_orientation ()
void set_velocity ()
virtual void update ()
 particle update routine.
virtual void write (ostream &out, int indent=0) const
 Write a string representation of this instance to <out>.

Detailed Description

Describes a particle that has angular characteristics (velocity, orientation).

Definition at line 25 of file orientedParticle.h.


Constructor & Destructor Documentation

OrientedParticle::OrientedParticle ( int  lifespan = 0,
bool  alive = false 
)

simple constructor

Definition at line 23 of file orientedParticle.cxx.

References PhysicsObject::set_oriented().

Referenced by make_copy().

OrientedParticle::OrientedParticle ( const OrientedParticle copy)

copy constructor

Definition at line 34 of file orientedParticle.cxx.

OrientedParticle::~OrientedParticle ( ) [virtual]

simple destructor

Definition at line 44 of file orientedParticle.cxx.


Member Function Documentation

void OrientedParticle::die ( ) [virtual]

particle death routine

Implements BaseParticle.

Definition at line 72 of file orientedParticle.cxx.

void OrientedParticle::init ( ) [virtual]

particle init routine

Implements BaseParticle.

Definition at line 63 of file orientedParticle.cxx.

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

simple destructor

Implements BaseParticle.

Definition at line 53 of file orientedParticle.cxx.

References OrientedParticle().

void OrientedParticle::output ( ostream &  out) const [virtual]

Write a string representation of this instance to <out>.

Reimplemented from BaseParticle.

Definition at line 93 of file orientedParticle.cxx.

void OrientedParticle::update ( ) [virtual]

particle update routine.

This NEEDS to be filled in with quaternion slerp stuff, or oriented particles will not rotate.

Implements BaseParticle.

Definition at line 83 of file orientedParticle.cxx.

void OrientedParticle::write ( ostream &  out,
int  indent = 0 
) const [virtual]

Write a string representation of this instance to <out>.

Reimplemented from BaseParticle.

Definition at line 106 of file orientedParticle.cxx.


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