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