Panda3D
 All Classes Functions Variables Enumerations
baseForce.I
1 // Filename: baseForce.I
2 // Created by: charles (08Aug00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 ////////////////////////////////////////////////////////////////////
16 // Function : get_force_node
17 // Access : Public
18 ////////////////////////////////////////////////////////////////////
19 INLINE ForceNode *BaseForce::
20 get_force_node() const {
21  return _force_node;
22 }
23 
24 ////////////////////////////////////////////////////////////////////
25 // Function : get_force_node_path
26 // Access : Public
27 ////////////////////////////////////////////////////////////////////
28 INLINE NodePath BaseForce::
29 get_force_node_path() const {
30  return _force_node_path;
31 }
32 
33 ////////////////////////////////////////////////////////////////////
34 // Function : set_active
35 // Access : Public
36 ////////////////////////////////////////////////////////////////////
37 INLINE void BaseForce::
38 set_active(bool active) {
39  _active = active;
40 }
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function : get_active
44 // Access : Public
45 ////////////////////////////////////////////////////////////////////
46 INLINE bool BaseForce::
47 get_active() const {
48  return _active;
49 }
A force that lives in the scene graph and is therefore subject to local coordinate systems...
Definition: forceNode.h:30
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165