Panda3D
|
00001 // Filename: angularEulerIntegrator.h 00002 // Created by: charles (09Aug00) 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 ANGULAREULERINTEGRATOR_H 00016 #define ANGULAREULERINTEGRATOR_H 00017 00018 #include "angularIntegrator.h" 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Class : AngularEulerIntegrator 00022 // Description : Performs Euler integration on a vector of 00023 // physically modelable objects given a quantum dt. 00024 //////////////////////////////////////////////////////////////////// 00025 class EXPCL_PANDAPHYSICS AngularEulerIntegrator : public AngularIntegrator { 00026 PUBLISHED: 00027 AngularEulerIntegrator(); 00028 virtual ~AngularEulerIntegrator(); 00029 00030 virtual void output(ostream &out) const; 00031 virtual void write(ostream &out, unsigned int indent=0) const; 00032 00033 private: 00034 virtual void child_integrate(Physical *physical, 00035 AngularForceVector& forces, 00036 PN_stdfloat dt); 00037 }; 00038 00039 #endif // EULERINTEGRATOR_H