Panda3D
 All Classes Functions Variables Enumerations
linearForce.I
1 // Filename: linearForce.I
2 // Created by: charles (13Jun00)
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 : set_amplitude
17 // Access : Public
18 ////////////////////////////////////////////////////////////////////
19 INLINE void LinearForce::
20 set_amplitude(PN_stdfloat a) {
21  _amplitude = a;
22 }
23 
24 ////////////////////////////////////////////////////////////////////
25 // Function : get_amplitude
26 // Access : Public
27 ////////////////////////////////////////////////////////////////////
28 INLINE PN_stdfloat LinearForce::
29 get_amplitude() const {
30  return _amplitude;
31 }
32 
33 ////////////////////////////////////////////////////////////////////
34 // Function : get_mass_dependent
35 // Access : Public
36 ////////////////////////////////////////////////////////////////////
37 INLINE bool LinearForce::
38 get_mass_dependent() const {
39  return _mass_dependent;
40 }
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function : set_mass_Dependent
44 // Access : Public
45 ////////////////////////////////////////////////////////////////////
46 INLINE void LinearForce::
47 set_mass_dependent(bool m) {
48  _mass_dependent = m;
49 }
50 
51 ////////////////////////////////////////////////////////////////////
52 // Function : set_vector_masks
53 // Access : Public
54 ////////////////////////////////////////////////////////////////////
55 INLINE void LinearForce::
56 set_vector_masks(bool x, bool y, bool z) {
57  _x_mask = x;
58  _y_mask = y;
59  _z_mask = z;
60 }
61 
62 ////////////////////////////////////////////////////////////////////
63 // Function : set_vector_masks
64 // Access : Public
65 ////////////////////////////////////////////////////////////////////
66 INLINE LVector3 LinearForce::
67 get_vector_masks() {
68  return LVector3(_x_mask, _y_mask, _z_mask);
69 }
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100