Panda3D

odeSurfaceParameters.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 odeSurfaceParameters.I
10 * @author joswilso
11 * @date 2006-12-27
12 */
13
14 INLINE void OdeSurfaceParameters::
15 set_mode(int mode) {
16 _surface_parameters.mode = mode;
17 }
18
19 INLINE void OdeSurfaceParameters::
20 set_mu(dReal mu) {
21 _surface_parameters.mu = mu;
22 }
23
24 INLINE void OdeSurfaceParameters::
25 set_mu2(dReal mu2) {
26 _surface_parameters.mu2 = mu2;
27 }
28
29 INLINE void OdeSurfaceParameters::
30 set_bounce(dReal bounce) {
31 _surface_parameters.bounce = bounce;
32 }
33
34 INLINE void OdeSurfaceParameters::
35 set_bounce_vel(dReal bounce_vel) {
36 _surface_parameters.bounce_vel = bounce_vel;
37 }
38
39 INLINE void OdeSurfaceParameters::
40 set_soft_erp(dReal soft_erp) {
41 _surface_parameters.soft_erp = soft_erp;
42 }
43
44 INLINE void OdeSurfaceParameters::
45 set_soft_cfm(dReal soft_cfm) {
46 _surface_parameters.soft_cfm = soft_cfm;
47 }
48
49 INLINE void OdeSurfaceParameters::
50 set_motion1(dReal motion) {
51 _surface_parameters.motion1 = motion;
52 }
53
54 INLINE void OdeSurfaceParameters::
55 set_motion2(dReal motion) {
56 _surface_parameters.motion2 = motion;
57 }
58
59 INLINE void OdeSurfaceParameters::
60 set_slip1(dReal slip) {
61 _surface_parameters.slip1 = slip;
62 }
63
64 INLINE void OdeSurfaceParameters::
65 set_slip2(dReal slip) {
66 _surface_parameters.slip2 = slip;
67 }
68
69
70 INLINE int OdeSurfaceParameters::
71 get_mode() const {
72 return _surface_parameters.mode;
73 }
74
75 INLINE dReal OdeSurfaceParameters::
76 get_mu() const {
77 return _surface_parameters.mu;
78 }
79
80 INLINE dReal OdeSurfaceParameters::
81 get_mu2() const {
82 return _surface_parameters.mu2;
83 }
84
85 INLINE dReal OdeSurfaceParameters::
86 get_bounce() const {
87 return _surface_parameters.bounce;
88 }
89
90 INLINE dReal OdeSurfaceParameters::
91 get_bounce_vel() const {
92 return _surface_parameters.bounce_vel;
93 }
94
95 INLINE dReal OdeSurfaceParameters::
96 get_soft_erp() const {
97 return _surface_parameters.soft_erp;
98 }
99
100 INLINE dReal OdeSurfaceParameters::
101 get_soft_cfm() const {
102 return _surface_parameters.soft_cfm;
103 }
104
105 INLINE dReal OdeSurfaceParameters::
106 get_motion1() const {
107 return _surface_parameters.motion1;
108 }
109
110 INLINE dReal OdeSurfaceParameters::
111 get_motion2() const {
112 return _surface_parameters.motion2;
113 }
114
115 INLINE dReal OdeSurfaceParameters::
116 get_slip1() const {
117 return _surface_parameters.slip1;
118 }
119
120 INLINE dReal OdeSurfaceParameters::
121 get_slip2() const {
122 return _surface_parameters.slip2;
123 }