00001 // Filename: baseForce.I 00002 // Created by: charles (08Aug00) 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 : get_force_node 00017 // Access : Public 00018 //////////////////////////////////////////////////////////////////// 00019 INLINE ForceNode *BaseForce:: 00020 get_force_node() const { 00021 return _force_node; 00022 } 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Function : get_force_node_path 00026 // Access : Public 00027 //////////////////////////////////////////////////////////////////// 00028 INLINE NodePath BaseForce:: 00029 get_force_node_path() const { 00030 return _force_node_path; 00031 } 00032 00033 //////////////////////////////////////////////////////////////////// 00034 // Function : set_active 00035 // Access : Public 00036 //////////////////////////////////////////////////////////////////// 00037 INLINE void BaseForce:: 00038 set_active(bool active) { 00039 _active = active; 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function : get_active 00044 // Access : Public 00045 //////////////////////////////////////////////////////////////////// 00046 INLINE bool BaseForce:: 00047 get_active() const { 00048 return _active; 00049 }