| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- // Filename: orientedParticle.cxx
- // Created by: charles (19Jun00)
- //
- ////////////////////////////////////////////////////////////////////
- //
- // PANDA 3D SOFTWARE
- // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
- //
- // All use of this software is subject to the terms of the Panda 3d
- // Software license. You should have received a copy of this license
- // along with this source code; you will also find a current copy of
- // the license at http://www.panda3d.org/license.txt .
- //
- // To contact the maintainers of this program write to
- // [email protected] .
- //
- ////////////////////////////////////////////////////////////////////
- #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) {
- }
|