00001 // Filename: orientedParticle.cxx 00002 // Created by: charles (19Jun00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #include "orientedParticle.h" 00020 00021 //////////////////////////////////////////////////////////////////// 00022 // Function : OrientedParticle 00023 // Access : public 00024 // Description : simple constructor 00025 //////////////////////////////////////////////////////////////////// 00026 OrientedParticle:: 00027 OrientedParticle(int lifespan, bool alive) : 00028 BaseParticle(lifespan, alive) { 00029 set_oriented(true); 00030 } 00031 00032 //////////////////////////////////////////////////////////////////// 00033 // Function : OrientedParticle 00034 // Access : public 00035 // Description : copy constructor 00036 //////////////////////////////////////////////////////////////////// 00037 OrientedParticle:: 00038 OrientedParticle(const OrientedParticle ©) : 00039 BaseParticle(copy) { 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function : ~OrientedParticle 00044 // Access : public 00045 // Description : simple destructor 00046 //////////////////////////////////////////////////////////////////// 00047 OrientedParticle:: 00048 ~OrientedParticle(void) { 00049 } 00050 00051 //////////////////////////////////////////////////////////////////// 00052 // Function : make_copy 00053 // Access : public, virtual 00054 // Description : simple destructor 00055 //////////////////////////////////////////////////////////////////// 00056 PhysicsObject *OrientedParticle:: 00057 make_copy(void) const { 00058 return new OrientedParticle(*this); 00059 } 00060 00061 //////////////////////////////////////////////////////////////////// 00062 // Function : init 00063 // Access : Public 00064 // Description : particle init routine 00065 //////////////////////////////////////////////////////////////////// 00066 void OrientedParticle:: 00067 init(void) { 00068 } 00069 00070 //////////////////////////////////////////////////////////////////// 00071 // Function : die 00072 // Access : public 00073 // Description : particle death routine 00074 //////////////////////////////////////////////////////////////////// 00075 void OrientedParticle:: 00076 die(void) { 00077 } 00078 00079 //////////////////////////////////////////////////////////////////// 00080 // Function : update 00081 // Access : public 00082 // Description : particle update routine. 00083 // This NEEDS to be filled in with quaternion slerp 00084 // stuff, or oriented particles will not rotate. 00085 //////////////////////////////////////////////////////////////////// 00086 void OrientedParticle:: 00087 update(void) { 00088 }