76 lines
2.3 KiB
C++
76 lines
2.3 KiB
C++
// Filename: orientedParticle.cxx
|
|
// Created by: charles (19Jun00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#include "orientedParticle.h"
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : OrientedParticle
|
|
// Access : public
|
|
// Description : simple constructor
|
|
////////////////////////////////////////////////////////////////////
|
|
OrientedParticle::
|
|
OrientedParticle(int lifespan, bool alive) :
|
|
BaseParticle(lifespan, alive) {
|
|
set_oriented(true);
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : OrientedParticle
|
|
// Access : public
|
|
// Description : copy constructor
|
|
////////////////////////////////////////////////////////////////////
|
|
OrientedParticle::
|
|
OrientedParticle(const OrientedParticle ©) :
|
|
BaseParticle(copy) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : ~OrientedParticle
|
|
// Access : public
|
|
// Description : simple destructor
|
|
////////////////////////////////////////////////////////////////////
|
|
OrientedParticle::
|
|
~OrientedParticle(void) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : make_copy
|
|
// Access : public, virtual
|
|
// Description : simple destructor
|
|
////////////////////////////////////////////////////////////////////
|
|
PhysicsObject *OrientedParticle::
|
|
make_copy(void) const {
|
|
return new OrientedParticle(*this);
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : init
|
|
// Access : Public
|
|
// Description : particle init routine
|
|
////////////////////////////////////////////////////////////////////
|
|
void OrientedParticle::
|
|
init(void) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : die
|
|
// Access : public
|
|
// Description : particle death routine
|
|
////////////////////////////////////////////////////////////////////
|
|
void OrientedParticle::
|
|
die(void) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : update
|
|
// Access : public
|
|
// Description : particle update routine.
|
|
// This NEEDS to be filled in with quaternion slerp
|
|
// stuff, or oriented particles will not rotate.
|
|
////////////////////////////////////////////////////////////////////
|
|
void OrientedParticle::
|
|
update(void) {
|
|
}
|