Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/physics/angularIntegrator.cxx

Go to the documentation of this file.
00001 // Filename: angularIntegrator.cxx
00002 // Created by:  charles (09Aug00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "angularIntegrator.h"
00020 
00021 ////////////////////////////////////////////////////////////////////
00022 //    Function : AngularIntegrator
00023 //      Access : protected
00024 // Description : constructor
00025 ////////////////////////////////////////////////////////////////////
00026 AngularIntegrator::
00027 AngularIntegrator(void) {
00028 }
00029 
00030 ////////////////////////////////////////////////////////////////////
00031 //    Function : ~AngularIntegrator
00032 //      Access : public, virtual
00033 // Description : destructor
00034 ////////////////////////////////////////////////////////////////////
00035 AngularIntegrator::
00036 ~AngularIntegrator(void) {
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //    Function : Integrate
00041 //      Access : public
00042 // Description : high-level integration.  API.
00043 ////////////////////////////////////////////////////////////////////
00044 void AngularIntegrator::
00045 integrate(Physical *physical, pvector< PT(AngularForce) >& forces,
00046           float dt) {
00047   // intercept in case we want to censor/adjust values
00048   if (dt > _max_angular_dt)
00049     dt = _max_angular_dt;
00050 
00051   // this actually does the integration.
00052   child_integrate(physical, forces, dt);
00053 }

Generated on Fri May 2 00:42:48 2003 for Panda by doxygen1.3