Panda3D
|
Describes a particle that has angular characteristics (velocity, orientation). More...
#include "orientedParticle.h"
Public Member Functions | |
OrientedParticle (int lifespan=0, bool alive=false) | |
simple constructor | |
OrientedParticle (const OrientedParticle ©) | |
copy constructor | |
virtual | ~OrientedParticle () |
simple destructor | |
virtual void | die () |
particle death routine | |
virtual void | init () |
particle init routine | |
virtual PhysicsObject * | make_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>. |
Describes a particle that has angular characteristics (velocity, orientation).
Definition at line 25 of file orientedParticle.h.
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.
void OrientedParticle::die | ( | ) | [virtual] |
void OrientedParticle::init | ( | ) | [virtual] |
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.