00001 // Filename: linearForce.I 00002 // Created by: charles (13Jun00) 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 //////////////////////////////////////////////////////////////////// 00020 // Function : set_amplitude 00021 // Access : Public 00022 //////////////////////////////////////////////////////////////////// 00023 INLINE void LinearForce:: 00024 set_amplitude(float a) { 00025 _amplitude = a; 00026 } 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function : get_amplitude 00030 // Access : Public 00031 //////////////////////////////////////////////////////////////////// 00032 INLINE float LinearForce:: 00033 get_amplitude(void) const { 00034 return _amplitude; 00035 } 00036 00037 //////////////////////////////////////////////////////////////////// 00038 // Function : get_mass_dependent 00039 // Access : Public 00040 //////////////////////////////////////////////////////////////////// 00041 INLINE bool LinearForce:: 00042 get_mass_dependent(void) const { 00043 return _mass_dependent; 00044 } 00045 00046 //////////////////////////////////////////////////////////////////// 00047 // Function : set_mass_Dependent 00048 // Access : Public 00049 //////////////////////////////////////////////////////////////////// 00050 INLINE void LinearForce:: 00051 set_mass_dependent(bool m) { 00052 _mass_dependent = m; 00053 } 00054 00055 //////////////////////////////////////////////////////////////////// 00056 // Function : set_vector_masks 00057 // Access : Public 00058 //////////////////////////////////////////////////////////////////// 00059 INLINE void LinearForce:: 00060 set_vector_masks(bool x, bool y, bool z) { 00061 _x_mask = x; 00062 _y_mask = y; 00063 _z_mask = z; 00064 }