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