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

panda/src/physics/linearJitterForce.cxx

Go to the documentation of this file.
00001 // Filename: linearJitterForce.cxx
00002 // Created by:  charles (16Jun00)
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 "linearJitterForce.h"
00020 
00021 TypeHandle LinearJitterForce::_type_handle;
00022 
00023 ////////////////////////////////////////////////////////////////////
00024 //    Function : LinearJitterForce
00025 //      Access : Public
00026 // Description : constructor
00027 ////////////////////////////////////////////////////////////////////
00028 LinearJitterForce::
00029 LinearJitterForce(float a, bool mass) :
00030   LinearRandomForce(a, mass) {
00031 }
00032 
00033 ////////////////////////////////////////////////////////////////////
00034 //    Function : LinearJitterForce
00035 //      Access : Public
00036 // Description : copy constructor
00037 ////////////////////////////////////////////////////////////////////
00038 LinearJitterForce::
00039 LinearJitterForce(const LinearJitterForce &copy) :
00040   LinearRandomForce(copy) {
00041 }
00042 
00043 ////////////////////////////////////////////////////////////////////
00044 //    Function : LinearJitterForce
00045 //      Access : Public
00046 // Description : constructor
00047 ////////////////////////////////////////////////////////////////////
00048 LinearJitterForce::
00049 ~LinearJitterForce(void) {
00050 }
00051 
00052 ////////////////////////////////////////////////////////////////////
00053 //    Function : make_copy
00054 //      Access : Public
00055 // Description : copier
00056 ////////////////////////////////////////////////////////////////////
00057 LinearForce *LinearJitterForce::
00058 make_copy(void) {
00059   return new LinearJitterForce(*this);
00060 }
00061 
00062 ////////////////////////////////////////////////////////////////////
00063 //    Function : get_child_vector
00064 //      Access : Public
00065 // Description : random value
00066 ////////////////////////////////////////////////////////////////////
00067 LVector3f LinearJitterForce::
00068 get_child_vector(const PhysicsObject *) {
00069   return random_unit_vector();
00070 }

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