Panda3D
Loading...
Searching...
No Matches
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 */
23class EXPCL_PANDA_PARTICLESYSTEM OrientedParticle : public BaseParticle {
24public:
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
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An individual, physically-modelable particle abstract base class.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
virtual PhysicsObject * make_copy() const =0
dynamic copy.
Describes a particle that has angular characteristics (velocity, orientation).
A body on which physics will be applied.
set_velocity
Vector velocity assignment.
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.