Panda3D
orientedParticle.h
1 // Filename: orientedParticle.h
2 // Created by: charles (19Jun00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef ORIENTEDPARTICLE_H
16 #define ORIENTEDPARTICLE_H
17 
18 #include "baseParticle.h"
19 
20 ////////////////////////////////////////////////////////////////////
21 // Class : OrientedParticle
22 // Description : Describes a particle that has angular
23 // characteristics (velocity, orientation).
24 ////////////////////////////////////////////////////////////////////
25 class EXPCL_PANDAPHYSICS OrientedParticle : public BaseParticle {
26 public:
27  OrientedParticle(int lifespan = 0, bool alive = false);
29  virtual ~OrientedParticle();
30 
31  virtual PhysicsObject *make_copy() const;
32 
33  INLINE void set_velocity();
34  INLINE void set_orientation();
35 
36  virtual void init();
37  virtual void update();
38  virtual void die();
39 
40  virtual void output(ostream &out) const;
41  virtual void write(ostream &out, int indent=0) const;
42 };
43 
44 #include "orientedParticle.I"
45 
46 #endif // ORIENTEDPARTICLE_H
virtual PhysicsObject * make_copy() const =0
dynamic copy.
A body on which physics will be applied.
Definition: physicsObject.h:29
void set_velocity(const LVector3 &vel)
Vector velocity assignment.
Definition: physicsObject.I:93
Describes a particle that has angular characteristics (velocity, orientation).
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
An individual, physically-modelable particle abstract base class.
Definition: baseParticle.h:26
virtual void write(ostream &out, int indent=0) const
Write a string representation of this instance to <out>.