Panda3D

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