Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE void LinearForce::
18set_amplitude(PN_stdfloat a) {
19 _amplitude = a;
20}
21
22/**
23
24 */
25INLINE PN_stdfloat LinearForce::
26get_amplitude() const {
27 return _amplitude;
28}
29
30/**
31
32 */
33INLINE bool LinearForce::
34get_mass_dependent() const {
35 return _mass_dependent;
36}
37
38/**
39
40 */
41INLINE void LinearForce::
42set_mass_dependent(bool m) {
43 _mass_dependent = m;
44}
45
46/**
47
48 */
49INLINE void LinearForce::
50set_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 */
59INLINE LVector3 LinearForce::
60get_vector_masks() {
61 return LVector3(_x_mask, _y_mask, _z_mask);
62}