open_toontown_panda3d/panda/src/particlesystem/orientedParticle.h

47 lines
1.4 KiB
C++

// Filename: orientedParticle.h
// Created by: charles (19Jun00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#ifndef ORIENTEDPARTICLE_H
#define ORIENTEDPARTICLE_H
#include "baseParticle.h"
////////////////////////////////////////////////////////////////////
// Class : OrientedParticle
// Description : Describes a particle that has angular
// characteristics (velocity, orientation).
////////////////////////////////////////////////////////////////////
class EXPCL_PANDAPHYSICS OrientedParticle : public BaseParticle {
public:
OrientedParticle(int lifespan = 0, bool alive = false);
OrientedParticle(const OrientedParticle &copy);
virtual ~OrientedParticle();
virtual PhysicsObject *make_copy() const;
INLINE void set_velocity();
INLINE void set_orientation();
virtual void init();
virtual void update();
virtual void die();
virtual void output(ostream &out) const;
virtual void write(ostream &out, int indent=0) const;
};
#include "orientedParticle.I"
#endif // ORIENTEDPARTICLE_H