Panda3D
 All Classes Functions Variables Enumerations
bulletManifoldPoint.I
1 // Filename: bulletManifoldPoint.I
2 // Created by: enn0x (07Mar10)
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: BulletManifoldPoint::Destructor
17 // Access: Published
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE BulletManifoldPoint::
21 ~BulletManifoldPoint() {
22 
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: BulletManifoldPoint::set_lateral_friction_initialized
27 // Access: Published
28 // Description:
29 ////////////////////////////////////////////////////////////////////
30 INLINE void BulletManifoldPoint::
31 set_lateral_friction_initialized(bool value) {
32 
33  _pt.m_lateralFrictionInitialized = value;
34 }
35 
36 ////////////////////////////////////////////////////////////////////
37 // Function: BulletManifoldPoint::get_lateral_friction_initialized
38 // Access: Published
39 // Description:
40 ////////////////////////////////////////////////////////////////////
41 INLINE bool BulletManifoldPoint::
42 get_lateral_friction_initialized() const {
43 
44  return _pt.m_lateralFrictionInitialized;
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: BulletManifoldPoint::set_lateral_friction_dir1
49 // Access: Published
50 // Description:
51 ////////////////////////////////////////////////////////////////////
52 INLINE void BulletManifoldPoint::
53 set_lateral_friction_dir1(const LVecBase3 &dir) {
54 
55  _pt.m_lateralFrictionDir1 = LVecBase3_to_btVector3(dir);
56 }
57 
58 ////////////////////////////////////////////////////////////////////
59 // Function: BulletManifoldPoint::get_lateral_friction_dir1
60 // Access: Published
61 // Description:
62 ////////////////////////////////////////////////////////////////////
63 INLINE LVector3 BulletManifoldPoint::
64 get_lateral_friction_dir1() const {
65 
66  return btVector3_to_LVector3(_pt.m_lateralFrictionDir1);
67 }
68 
69 ////////////////////////////////////////////////////////////////////
70 // Function: BulletManifoldPoint::set_lateral_friction_dir2
71 // Access: Published
72 // Description:
73 ////////////////////////////////////////////////////////////////////
74 INLINE void BulletManifoldPoint::
75 set_lateral_friction_dir2(const LVecBase3 &dir) {
76 
77  _pt.m_lateralFrictionDir2 = LVecBase3_to_btVector3(dir);
78 }
79 
80 ////////////////////////////////////////////////////////////////////
81 // Function: BulletManifoldPoint::get_lateral_friction_dir2
82 // Access: Published
83 // Description:
84 ////////////////////////////////////////////////////////////////////
85 INLINE LVector3 BulletManifoldPoint::
86 get_lateral_friction_dir2() const {
87 
88  return btVector3_to_LVector3(_pt.m_lateralFrictionDir2);
89 }
90 
91 ////////////////////////////////////////////////////////////////////
92 // Function: BulletManifoldPoint::set_contact_motion1
93 // Access: Published
94 // Description:
95 ////////////////////////////////////////////////////////////////////
96 INLINE void BulletManifoldPoint::
97 set_contact_motion1(PN_stdfloat value) {
98 
99  _pt.m_contactMotion1 = (btScalar)value;
100 }
101 
102 ////////////////////////////////////////////////////////////////////
103 // Function: BulletManifoldPoint::get_contact_motion1
104 // Access: Published
105 // Description:
106 ////////////////////////////////////////////////////////////////////
107 INLINE PN_stdfloat BulletManifoldPoint::
108 get_contact_motion1() const {
109 
110  return (PN_stdfloat)_pt.m_contactMotion1;
111 }
112 
113 ////////////////////////////////////////////////////////////////////
114 // Function: BulletManifoldPoint::set_contact_motion2
115 // Access: Published
116 // Description:
117 ////////////////////////////////////////////////////////////////////
118 INLINE void BulletManifoldPoint::
119 set_contact_motion2(PN_stdfloat value) {
120 
121  _pt.m_contactMotion2 = (btScalar)value;
122 }
123 
124 ////////////////////////////////////////////////////////////////////
125 // Function: BulletManifoldPoint::get_contact_motion2
126 // Access: Published
127 // Description:
128 ////////////////////////////////////////////////////////////////////
129 INLINE PN_stdfloat BulletManifoldPoint::
130 get_contact_motion2() const {
131 
132  return (PN_stdfloat)_pt.m_contactMotion2;
133 }
134 
135 ////////////////////////////////////////////////////////////////////
136 // Function: BulletManifoldPoint::set_combined_friction
137 // Access: Published
138 // Description:
139 ////////////////////////////////////////////////////////////////////
140 INLINE void BulletManifoldPoint::
141 set_combined_friction(PN_stdfloat value) {
142 
143  _pt.m_combinedFriction = (btScalar)value;
144 }
145 
146 ////////////////////////////////////////////////////////////////////
147 // Function: BulletManifoldPoint::get_combined_friction
148 // Access: Published
149 // Description:
150 ////////////////////////////////////////////////////////////////////
151 INLINE PN_stdfloat BulletManifoldPoint::
152 get_combined_friction() const {
153 
154  return (PN_stdfloat)_pt.m_combinedFriction;
155 }
156 
157 ////////////////////////////////////////////////////////////////////
158 // Function: BulletManifoldPoint::set_combined_restitution
159 // Access: Published
160 // Description:
161 ////////////////////////////////////////////////////////////////////
162 INLINE void BulletManifoldPoint::
163 set_combined_restitution(PN_stdfloat value) {
164 
165  _pt.m_combinedRestitution = (btScalar)value;
166 }
167 
168 ////////////////////////////////////////////////////////////////////
169 // Function: BulletManifoldPoint::get_combined_restitution
170 // Access: Published
171 // Description:
172 ////////////////////////////////////////////////////////////////////
173 INLINE PN_stdfloat BulletManifoldPoint::
174 get_combined_restitution() const {
175 
176  return (PN_stdfloat)_pt.m_combinedRestitution;
177 }
178 
179 ////////////////////////////////////////////////////////////////////
180 // Function: BulletManifoldPoint::set_applied_impulse
181 // Access: Published
182 // Description:
183 ////////////////////////////////////////////////////////////////////
184 INLINE void BulletManifoldPoint::
185 set_applied_impulse(PN_stdfloat value) {
186 
187  _pt.m_appliedImpulse = (btScalar)value;
188 }
189 
190 ////////////////////////////////////////////////////////////////////
191 // Function: BulletManifoldPoint::set_applied_impulse_lateral1
192 // Access: Published
193 // Description:
194 ////////////////////////////////////////////////////////////////////
195 INLINE void BulletManifoldPoint::
196 set_applied_impulse_lateral1(PN_stdfloat value) {
197 
198  _pt.m_appliedImpulseLateral1 = (btScalar)value;
199 }
200 
201 ////////////////////////////////////////////////////////////////////
202 // Function: BulletManifoldPoint::get_applied_impulse_lateral1
203 // Access: Published
204 // Description:
205 ////////////////////////////////////////////////////////////////////
206 INLINE PN_stdfloat BulletManifoldPoint::
207 get_applied_impulse_lateral1() const {
208 
209  return (PN_stdfloat)_pt.m_appliedImpulseLateral1;
210 }
211 
212 ////////////////////////////////////////////////////////////////////
213 // Function: BulletManifoldPoint::set_applied_impulse_lateral2
214 // Access: Published
215 // Description:
216 ////////////////////////////////////////////////////////////////////
217 INLINE void BulletManifoldPoint::
218 set_applied_impulse_lateral2(PN_stdfloat value) {
219 
220  _pt.m_appliedImpulseLateral2 = (btScalar)value;
221 }
222 
223 ////////////////////////////////////////////////////////////////////
224 // Function: BulletManifoldPoint::get_applied_impulse_lateral2
225 // Access: Published
226 // Description:
227 ////////////////////////////////////////////////////////////////////
228 INLINE PN_stdfloat BulletManifoldPoint::
229 get_applied_impulse_lateral2() const {
230 
231  return (PN_stdfloat)_pt.m_appliedImpulseLateral2;
232 }
233 
234 ////////////////////////////////////////////////////////////////////
235 // Function: BulletManifoldPoint::set_contact_cfm1
236 // Access: Published
237 // Description:
238 ////////////////////////////////////////////////////////////////////
239 INLINE void BulletManifoldPoint::
240 set_contact_cfm1(PN_stdfloat value) {
241 
242  _pt.m_contactCFM1 = (btScalar)value;
243 }
244 
245 ////////////////////////////////////////////////////////////////////
246 // Function: BulletManifoldPoint::get_contact_cfm1
247 // Access: Published
248 // Description:
249 ////////////////////////////////////////////////////////////////////
250 INLINE PN_stdfloat BulletManifoldPoint::
251 get_contact_cfm1() const {
252 
253  return (PN_stdfloat)_pt.m_contactCFM1;
254 }
255 
256 ////////////////////////////////////////////////////////////////////
257 // Function: BulletManifoldPoint::set_contact_cfm2
258 // Access: Published
259 // Description:
260 ////////////////////////////////////////////////////////////////////
261 INLINE void BulletManifoldPoint::
262 set_contact_cfm2(PN_stdfloat value) {
263 
264  _pt.m_contactCFM2 = (btScalar)value;
265 }
266 
267 ////////////////////////////////////////////////////////////////////
268 // Function: BulletManifoldPoint::get_contact_cfm2
269 // Access: Published
270 // Description:
271 ////////////////////////////////////////////////////////////////////
272 INLINE PN_stdfloat BulletManifoldPoint::
273 get_contact_cfm2() const {
274 
275  return (PN_stdfloat)_pt.m_contactCFM2;
276 }
277 
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100