Panda3D

orientedParticle.h

00001 // Filename: orientedParticle.h
00002 // Created by:  charles (19Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef ORIENTEDPARTICLE_H
00016 #define ORIENTEDPARTICLE_H
00017 
00018 #include "baseParticle.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //        Class : OrientedParticle
00022 //  Description : Describes a particle that has angular
00023 //                characteristics (velocity, orientation).
00024 ////////////////////////////////////////////////////////////////////
00025 class EXPCL_PANDAPHYSICS OrientedParticle : public BaseParticle {
00026 public:
00027   OrientedParticle(int lifespan = 0, bool alive = false);
00028   OrientedParticle(const OrientedParticle &copy);
00029   virtual ~OrientedParticle();
00030 
00031   virtual PhysicsObject *make_copy() const;
00032 
00033   INLINE void set_velocity();
00034   INLINE void set_orientation();
00035 
00036   virtual void init();
00037   virtual void update();
00038   virtual void die();
00039 
00040   virtual void output(ostream &out) const;
00041   virtual void write(ostream &out, int indent=0) const;
00042 };
00043 
00044 #include "orientedParticle.I"
00045 
00046 #endif // ORIENTEDPARTICLE_H
 All Classes Functions Variables Enumerations