angularEulerIntegrator.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Filename: angularEulerIntegrator.h
  2. // Created by: charles (09Aug00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef ANGULAREULERINTEGRATOR_H
  19. #define ANGULAREULERINTEGRATOR_H
  20. #include "angularIntegrator.h"
  21. ////////////////////////////////////////////////////////////////////
  22. // Class : AngularEulerIntegrator
  23. // Description : Performs Euler integration on a vector of
  24. // physically modelable objects given a quantum dt.
  25. ////////////////////////////////////////////////////////////////////
  26. class EXPCL_PANDAPHYSICS AngularEulerIntegrator : public AngularIntegrator {
  27. PUBLISHED:
  28. AngularEulerIntegrator();
  29. virtual ~AngularEulerIntegrator();
  30. virtual void output(ostream &out) const;
  31. virtual void write(ostream &out, unsigned int indent=0) const;
  32. private:
  33. virtual void child_integrate(Physical *physical,
  34. AngularForceVector& forces,
  35. float dt);
  36. };
  37. #endif // EULERINTEGRATOR_H