Panda3D
linearForce.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file linearForce.I
10  * @author charles
11  * @date 2000-06-13
12  */
13 
14 /**
15 
16  */
17 INLINE void LinearForce::
18 set_amplitude(PN_stdfloat a) {
19  _amplitude = a;
20 }
21 
22 /**
23 
24  */
25 INLINE PN_stdfloat LinearForce::
26 get_amplitude() const {
27  return _amplitude;
28 }
29 
30 /**
31 
32  */
33 INLINE bool LinearForce::
34 get_mass_dependent() const {
35  return _mass_dependent;
36 }
37 
38 /**
39 
40  */
41 INLINE void LinearForce::
42 set_mass_dependent(bool m) {
43  _mass_dependent = m;
44 }
45 
46 /**
47 
48  */
49 INLINE void LinearForce::
50 set_vector_masks(bool x, bool y, bool z) {
51  _x_mask = x;
52  _y_mask = y;
53  _z_mask = z;
54 }
55 
56 /**
57 
58  */
59 INLINE LVector3 LinearForce::
60 get_vector_masks() {
61  return LVector3(_x_mask, _y_mask, _z_mask);
62 }