Panda3D
bulletSoftBodyConfig.I
1 // Filename: bulletSoftBodyConfig.I
2 // Created by: enn0x (12Apr10)
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: BulletSoftBodyConfig::Destructor
17 // Access: Published
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE BulletSoftBodyConfig::
21 ~BulletSoftBodyConfig() {
22 
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: BulletSoftBodyConfig::get_velocities_correction_factor
27 // Access: Published
28 // Description: Getter for property kVCF.
29 ////////////////////////////////////////////////////////////////////
30 INLINE PN_stdfloat BulletSoftBodyConfig::
32 
33  return (PN_stdfloat)_cfg.kVCF;
34 }
35 
36 ////////////////////////////////////////////////////////////////////
37 // Function: BulletSoftBodyConfig::set_velocities_correction_factor
38 // Access: Published
39 // Description: Setter for property kVCF.
40 ////////////////////////////////////////////////////////////////////
41 INLINE void BulletSoftBodyConfig::
43 
44  _cfg.kVCF = (btScalar)value;
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: BulletSoftBodyConfig::get_damping_coefficient
49 // Access: Published
50 // Description: Getter for property kDP.
51 ////////////////////////////////////////////////////////////////////
52 INLINE PN_stdfloat BulletSoftBodyConfig::
54 
55  return (PN_stdfloat)_cfg.kDP;
56 }
57 
58 ////////////////////////////////////////////////////////////////////
59 // Function: BulletSoftBodyConfig::set_damping_coefficient
60 // Access: Published
61 // Description: Setter for property kDP.
62 ////////////////////////////////////////////////////////////////////
63 INLINE void BulletSoftBodyConfig::
64 set_damping_coefficient(PN_stdfloat value) {
65 
66  _cfg.kDP = (btScalar)value;
67 }
68 
69 ////////////////////////////////////////////////////////////////////
70 // Function: BulletSoftBodyConfig::get_drag_coefficient
71 // Access: Published
72 // Description: Getter for property kDG.
73 ////////////////////////////////////////////////////////////////////
74 INLINE PN_stdfloat BulletSoftBodyConfig::
76 
77  return (PN_stdfloat)_cfg.kDG;
78 }
79 
80 ////////////////////////////////////////////////////////////////////
81 // Function: BulletSoftBodyConfig::set_drag_coefficient
82 // Access: Published
83 // Description: Setter for property kDG.
84 ////////////////////////////////////////////////////////////////////
85 INLINE void BulletSoftBodyConfig::
86 set_drag_coefficient(PN_stdfloat value) {
87 
88  _cfg.kDG = (btScalar)value;
89 }
90 
91 ////////////////////////////////////////////////////////////////////
92 // Function: BulletSoftBodyConfig::get_lift_coefficient
93 // Access: Published
94 // Description: Getter for property kLF.
95 ////////////////////////////////////////////////////////////////////
96 INLINE PN_stdfloat BulletSoftBodyConfig::
98 
99  return (PN_stdfloat)_cfg.kLF;
100 }
101 
102 ////////////////////////////////////////////////////////////////////
103 // Function: BulletSoftBodyConfig::set_lift_coefficient
104 // Access: Published
105 // Description: Setter for property kLF.
106 ////////////////////////////////////////////////////////////////////
107 INLINE void BulletSoftBodyConfig::
108 set_lift_coefficient(PN_stdfloat value) {
109 
110  _cfg.kLF = (btScalar)value;
111 }
112 
113 ////////////////////////////////////////////////////////////////////
114 // Function: BulletSoftBodyConfig::get_pressure_coefficient
115 // Access: Published
116 // Description: Getter for property kPR.
117 ////////////////////////////////////////////////////////////////////
118 INLINE PN_stdfloat BulletSoftBodyConfig::
120 
121  return (PN_stdfloat)_cfg.kPR;
122 }
123 
124 ////////////////////////////////////////////////////////////////////
125 // Function: BulletSoftBodyConfig::set_pressure_coefficient
126 // Access: Published
127 // Description: Setter for property kPR.
128 ////////////////////////////////////////////////////////////////////
129 INLINE void BulletSoftBodyConfig::
130 set_pressure_coefficient(PN_stdfloat value) {
131 
132  _cfg.kPR = (btScalar)value;
133 }
134 
135 ////////////////////////////////////////////////////////////////////
136 // Function: BulletSoftBodyConfig::get_volume_conversation_coefficient
137 // Access: Published
138 // Description: Getter for property kVC.
139 ////////////////////////////////////////////////////////////////////
140 INLINE PN_stdfloat BulletSoftBodyConfig::
142 
143  return (PN_stdfloat)_cfg.kVC;
144 }
145 
146 ////////////////////////////////////////////////////////////////////
147 // Function: BulletSoftBodyConfig::set_volume_conversation_coefficient
148 // Access: Published
149 // Description: Setter for property kVC.
150 ////////////////////////////////////////////////////////////////////
151 INLINE void BulletSoftBodyConfig::
153 
154  _cfg.kVC = (btScalar)value;
155 }
156 
157 ////////////////////////////////////////////////////////////////////
158 // Function: BulletSoftBodyConfig::get_dynamic_friction_coefficient
159 // Access: Published
160 // Description: Getter for property kDF.
161 ////////////////////////////////////////////////////////////////////
162 INLINE PN_stdfloat BulletSoftBodyConfig::
164 
165  return (PN_stdfloat)_cfg.kDF;
166 }
167 
168 ////////////////////////////////////////////////////////////////////
169 // Function: BulletSoftBodyConfig::set_dynamic_friction_coefficient
170 // Access: Published
171 // Description: Setter for property kDF.
172 ////////////////////////////////////////////////////////////////////
173 INLINE void BulletSoftBodyConfig::
175 
176  _cfg.kDF = (btScalar)value;
177 }
178 
179 ////////////////////////////////////////////////////////////////////
180 // Function: BulletSoftBodyConfig::get_pose_matching_coefficient
181 // Access: Published
182 // Description: Getter for property kMT.
183 ////////////////////////////////////////////////////////////////////
184 INLINE PN_stdfloat BulletSoftBodyConfig::
186 
187  return (PN_stdfloat)_cfg.kMT;
188 }
189 
190 ////////////////////////////////////////////////////////////////////
191 // Function: BulletSoftBodyConfig::set_pose_matching_coefficient
192 // Access: Published
193 // Description: Setter for property kMT.
194 ////////////////////////////////////////////////////////////////////
195 INLINE void BulletSoftBodyConfig::
196 set_pose_matching_coefficient(PN_stdfloat value) {
197 
198  _cfg.kMT = (btScalar)value;
199 }
200 
201 ////////////////////////////////////////////////////////////////////
202 // Function: BulletSoftBodyConfig::get_rigid_contacts_hardness
203 // Access: Published
204 // Description: Getter for property kCHR.
205 ////////////////////////////////////////////////////////////////////
206 INLINE PN_stdfloat BulletSoftBodyConfig::
208 
209  return (PN_stdfloat)_cfg.kCHR;
210 }
211 
212 ////////////////////////////////////////////////////////////////////
213 // Function: BulletSoftBodyConfig::set_rigid_contacts_hardness
214 // Access: Published
215 // Description: Setter for property kCHR.
216 ////////////////////////////////////////////////////////////////////
217 INLINE void BulletSoftBodyConfig::
218 set_rigid_contacts_hardness(PN_stdfloat value) {
219 
220  _cfg.kCHR = (btScalar)value;
221 }
222 
223 ////////////////////////////////////////////////////////////////////
224 // Function: BulletSoftBodyConfig::get_kinetic_contacts_hardness
225 // Access: Published
226 // Description: Getter for property kKHR.
227 ////////////////////////////////////////////////////////////////////
228 INLINE PN_stdfloat BulletSoftBodyConfig::
230 
231  return (PN_stdfloat)_cfg.kKHR;
232 }
233 
234 ////////////////////////////////////////////////////////////////////
235 // Function: BulletSoftBodyConfig::set_kinetic_contacts_hardness
236 // Access: Published
237 // Description: Setter for property kKHR.
238 ////////////////////////////////////////////////////////////////////
239 INLINE void BulletSoftBodyConfig::
240 set_kinetic_contacts_hardness(PN_stdfloat value) {
241 
242  _cfg.kKHR = (btScalar)value;
243 }
244 
245 ////////////////////////////////////////////////////////////////////
246 // Function: BulletSoftBodyConfig::get_soft_contacts_hardness
247 // Access: Published
248 // Description: Getter for property kSHR.
249 ////////////////////////////////////////////////////////////////////
250 INLINE PN_stdfloat BulletSoftBodyConfig::
252 
253  return (PN_stdfloat)_cfg.kSHR;
254 }
255 
256 ////////////////////////////////////////////////////////////////////
257 // Function: BulletSoftBodyConfig::set_soft_contacts_hardness
258 // Access: Published
259 // Description: Setter for property kSHR.
260 ////////////////////////////////////////////////////////////////////
261 INLINE void BulletSoftBodyConfig::
262 set_soft_contacts_hardness(PN_stdfloat value) {
263 
264  _cfg.kSHR = (btScalar)value;
265 }
266 
267 ////////////////////////////////////////////////////////////////////
268 // Function: BulletSoftBodyConfig::get_anchors_hardness
269 // Access: Published
270 // Description: Getter for property kAHR.
271 ////////////////////////////////////////////////////////////////////
272 INLINE PN_stdfloat BulletSoftBodyConfig::
274 
275  return (PN_stdfloat)_cfg.kAHR;
276 }
277 
278 ////////////////////////////////////////////////////////////////////
279 // Function: BulletSoftBodyConfig::set_anchors_hardness
280 // Access: Published
281 // Description: Setter for property kAHR.
282 ////////////////////////////////////////////////////////////////////
283 INLINE void BulletSoftBodyConfig::
284 set_anchors_hardness(PN_stdfloat value) {
285 
286  _cfg.kAHR = (btScalar)value;
287 }
288 
289 ////////////////////////////////////////////////////////////////////
290 // Function: BulletSoftBodyConfig::get_soft_vs_rigid_hardness
291 // Access: Published
292 // Description: Getter for property kSRHR_CL.
293 ////////////////////////////////////////////////////////////////////
294 INLINE PN_stdfloat BulletSoftBodyConfig::
296 
297  return (PN_stdfloat)_cfg.kSRHR_CL;
298 }
299 
300 ////////////////////////////////////////////////////////////////////
301 // Function: BulletSoftBodyConfig::set_soft_vs_rigid_hardness
302 // Access: Published
303 // Description: Setter for property kSRHR_CL.
304 ////////////////////////////////////////////////////////////////////
305 INLINE void BulletSoftBodyConfig::
306 set_soft_vs_rigid_hardness(PN_stdfloat value) {
307 
308  _cfg.kSRHR_CL = (btScalar)value;
309 }
310 
311 ////////////////////////////////////////////////////////////////////
312 // Function: BulletSoftBodyConfig::get_soft_vs_kinetic_hardness
313 // Access: Published
314 // Description: Getter for property kSKHR_CL.
315 ////////////////////////////////////////////////////////////////////
316 INLINE PN_stdfloat BulletSoftBodyConfig::
318 
319  return (PN_stdfloat)_cfg.kSKHR_CL;
320 }
321 
322 ////////////////////////////////////////////////////////////////////
323 // Function: BulletSoftBodyConfig::set_soft_vs_kinetic_hardness
324 // Access: Published
325 // Description: Setter for property kSKHR_CL.
326 ////////////////////////////////////////////////////////////////////
327 INLINE void BulletSoftBodyConfig::
328 set_soft_vs_kinetic_hardness(PN_stdfloat value) {
329 
330  _cfg.kSKHR_CL = (btScalar)value;
331 }
332 
333 ////////////////////////////////////////////////////////////////////
334 // Function: BulletSoftBodyConfig::get_soft_vs_soft_hardness
335 // Access: Published
336 // Description: Getter for property kSSHR_CL.
337 ////////////////////////////////////////////////////////////////////
338 INLINE PN_stdfloat BulletSoftBodyConfig::
340 
341  return (PN_stdfloat)_cfg.kSSHR_CL;
342 }
343 
344 ////////////////////////////////////////////////////////////////////
345 // Function: BulletSoftBodyConfig::set_soft_vs_soft_hardness
346 // Access: Published
347 // Description: Setter for property kSSHR_CL.
348 ////////////////////////////////////////////////////////////////////
349 INLINE void BulletSoftBodyConfig::
350 set_soft_vs_soft_hardness(PN_stdfloat value) {
351 
352  _cfg.kSSHR_CL = (btScalar)value;
353 }
354 
355 ////////////////////////////////////////////////////////////////////
356 // Function: BulletSoftBodyConfig::get_soft_vs_rigid_impulse_split
357 // Access: Published
358 // Description: Getter for property kSR_SPLT_CL.
359 ////////////////////////////////////////////////////////////////////
360 INLINE PN_stdfloat BulletSoftBodyConfig::
362 
363  return (PN_stdfloat)_cfg.kSR_SPLT_CL;
364 }
365 
366 ////////////////////////////////////////////////////////////////////
367 // Function: BulletSoftBodyConfig::set_soft_vs_rigid_impulse_split
368 // Access: Published
369 // Description: Setter for property kSR_SPLT_CL.
370 ////////////////////////////////////////////////////////////////////
371 INLINE void BulletSoftBodyConfig::
373 
374  _cfg.kSR_SPLT_CL = (btScalar)value;
375 }
376 
377 ////////////////////////////////////////////////////////////////////
378 // Function: BulletSoftBodyConfig::get_soft_vs_kinetic_impulse_split
379 // Access: Published
380 // Description: Getter for property kSK_SPLT_CL.
381 ////////////////////////////////////////////////////////////////////
382 INLINE PN_stdfloat BulletSoftBodyConfig::
384 
385  return (PN_stdfloat)_cfg.kSK_SPLT_CL;
386 }
387 
388 ////////////////////////////////////////////////////////////////////
389 // Function: BulletSoftBodyConfig::set_soft_vs_kinetic_impulse_split
390 // Access: Published
391 // Description: Setter for property kSK_SPLT_CL.
392 ////////////////////////////////////////////////////////////////////
393 INLINE void BulletSoftBodyConfig::
395 
396  _cfg.kSK_SPLT_CL = (btScalar)value;
397 }
398 
399 ////////////////////////////////////////////////////////////////////
400 // Function: BulletSoftBodyConfig::get_soft_vs_soft_impulse_split
401 // Access: Published
402 // Description: Getter for property kSS_SPLT_CL.
403 ////////////////////////////////////////////////////////////////////
404 INLINE PN_stdfloat BulletSoftBodyConfig::
406 
407  return (PN_stdfloat)_cfg.kSS_SPLT_CL;
408 }
409 
410 ////////////////////////////////////////////////////////////////////
411 // Function: BulletSoftBodyConfig::set_soft_vs_soft_impulse_split
412 // Access: Published
413 // Description: Setter for property kSS_SPLT_CL.
414 ////////////////////////////////////////////////////////////////////
415 INLINE void BulletSoftBodyConfig::
416 set_soft_vs_soft_impulse_split(PN_stdfloat value) {
417 
418  _cfg.kSS_SPLT_CL = (btScalar)value;
419 }
420 
421 ////////////////////////////////////////////////////////////////////
422 // Function: BulletSoftBodyConfig::get_maxvolume
423 // Access: Published
424 // Description: Getter for property maxvolume.
425 ////////////////////////////////////////////////////////////////////
426 INLINE PN_stdfloat BulletSoftBodyConfig::
427 get_maxvolume() const {
428 
429  return (PN_stdfloat)_cfg.maxvolume;
430 }
431 
432 ////////////////////////////////////////////////////////////////////
433 // Function: BulletSoftBodyConfig::set_maxvolume
434 // Access: Published
435 // Description: Setter for property maxvolume.
436 ////////////////////////////////////////////////////////////////////
437 INLINE void BulletSoftBodyConfig::
438 set_maxvolume(PN_stdfloat value) {
439 
440  _cfg.maxvolume = (btScalar)value;
441 }
442 
443 ////////////////////////////////////////////////////////////////////
444 // Function: BulletSoftBodyConfig::get_timescale
445 // Access: Published
446 // Description: Getter for property timescale.
447 ////////////////////////////////////////////////////////////////////
448 INLINE PN_stdfloat BulletSoftBodyConfig::
449 get_timescale() const {
450 
451  return (PN_stdfloat)_cfg.timescale;
452 }
453 
454 ////////////////////////////////////////////////////////////////////
455 // Function: BulletSoftBodyConfig::set_timescale
456 // Access: Published
457 // Description: Setter for property timescale.
458 ////////////////////////////////////////////////////////////////////
459 INLINE void BulletSoftBodyConfig::
460 set_timescale(PN_stdfloat value) {
461 
462  _cfg.timescale = (btScalar)value;
463 }
464 
465 ////////////////////////////////////////////////////////////////////
466 // Function: BulletSoftBodyConfig::get_positions_solver_iterations
467 // Access: Published
468 // Description: Getter for property piterations.
469 ////////////////////////////////////////////////////////////////////
470 INLINE int BulletSoftBodyConfig::
472 
473  return _cfg.piterations;
474 }
475 
476 ////////////////////////////////////////////////////////////////////
477 // Function: BulletSoftBodyConfig::set_positions_solver_iterations
478 // Access: Published
479 // Description: Setter for property piterations.
480 ////////////////////////////////////////////////////////////////////
481 INLINE void BulletSoftBodyConfig::
483 
484  nassertv(value > 0);
485  _cfg.piterations = value;
486 }
487 
488 ////////////////////////////////////////////////////////////////////
489 // Function: BulletSoftBodyConfig::get_velocities_solver_iterations
490 // Access: Published
491 // Description: Getter for property viterations.
492 ////////////////////////////////////////////////////////////////////
493 INLINE int BulletSoftBodyConfig::
495 
496  return _cfg.viterations;
497 }
498 
499 ////////////////////////////////////////////////////////////////////
500 // Function: BulletSoftBodyConfig::set_velocities_solver_iterations
501 // Access: Published
502 // Description: Setter for property viterations.
503 ////////////////////////////////////////////////////////////////////
504 INLINE void BulletSoftBodyConfig::
506 
507  nassertv(value > 0);
508  _cfg.viterations = value;
509 }
510 
511 ////////////////////////////////////////////////////////////////////
512 // Function: BulletSoftBodyConfig::get_drift_solver_iterations
513 // Access: Published
514 // Description: Getter for property diterations.
515 ////////////////////////////////////////////////////////////////////
516 INLINE int BulletSoftBodyConfig::
518 
519  return _cfg.diterations;
520 }
521 
522 ////////////////////////////////////////////////////////////////////
523 // Function: BulletSoftBodyConfig::set_drift_solver_iterations
524 // Access: Published
525 // Description: Setter for property diterations.
526 ////////////////////////////////////////////////////////////////////
527 INLINE void BulletSoftBodyConfig::
529 
530  nassertv(value > 0);
531  _cfg.diterations = value;
532 }
533 
534 ////////////////////////////////////////////////////////////////////
535 // Function: BulletSoftBodyConfig::get_cluster_solver_iterations
536 // Access: Published
537 // Description: Getter for property citerations.
538 ////////////////////////////////////////////////////////////////////
539 INLINE int BulletSoftBodyConfig::
541 
542  return _cfg.citerations;
543 }
544 
545 ////////////////////////////////////////////////////////////////////
546 // Function: BulletSoftBodyConfig::set_cluster_solver_iterations
547 // Access: Published
548 // Description: Setter for property citerations.
549 ////////////////////////////////////////////////////////////////////
550 INLINE void BulletSoftBodyConfig::
552 
553  nassertv(value > 0);
554  _cfg.citerations = value;
555 }
556 
void set_kinetic_contacts_hardness(PN_stdfloat value)
Setter for property kKHR.
PN_stdfloat get_pressure_coefficient() const
Getter for property kPR.
PN_stdfloat get_maxvolume() const
Getter for property maxvolume.
void set_rigid_contacts_hardness(PN_stdfloat value)
Setter for property kCHR.
void set_drag_coefficient(PN_stdfloat value)
Setter for property kDG.
void set_soft_vs_soft_impulse_split(PN_stdfloat value)
Setter for property kSS_SPLT_CL.
PN_stdfloat get_soft_vs_rigid_hardness() const
Getter for property kSRHR_CL.
PN_stdfloat get_soft_vs_soft_impulse_split() const
Getter for property kSS_SPLT_CL.
PN_stdfloat get_volume_conversation_coefficient() const
Getter for property kVC.
void set_soft_vs_rigid_impulse_split(PN_stdfloat value)
Setter for property kSR_SPLT_CL.
int get_positions_solver_iterations() const
Getter for property piterations.
int get_velocities_solver_iterations() const
Getter for property viterations.
void set_damping_coefficient(PN_stdfloat value)
Setter for property kDP.
void set_timescale(PN_stdfloat value)
Setter for property timescale.
PN_stdfloat get_damping_coefficient() const
Getter for property kDP.
void set_velocities_solver_iterations(int value)
Setter for property viterations.
void set_positions_solver_iterations(int value)
Setter for property piterations.
void set_maxvolume(PN_stdfloat value)
Setter for property maxvolume.
PN_stdfloat get_pose_matching_coefficient() const
Getter for property kMT.
PN_stdfloat get_dynamic_friction_coefficient() const
Getter for property kDF.
void set_lift_coefficient(PN_stdfloat value)
Setter for property kLF.
PN_stdfloat get_soft_vs_rigid_impulse_split() const
Getter for property kSR_SPLT_CL.
void set_velocities_correction_factor(PN_stdfloat value)
Setter for property kVCF.
PN_stdfloat get_kinetic_contacts_hardness() const
Getter for property kKHR.
PN_stdfloat get_soft_vs_kinetic_impulse_split() const
Getter for property kSK_SPLT_CL.
PN_stdfloat get_soft_contacts_hardness() const
Getter for property kSHR.
PN_stdfloat get_soft_vs_kinetic_hardness() const
Getter for property kSKHR_CL.
PN_stdfloat get_anchors_hardness() const
Getter for property kAHR.
void set_soft_vs_kinetic_impulse_split(PN_stdfloat value)
Setter for property kSK_SPLT_CL.
void set_soft_contacts_hardness(PN_stdfloat value)
Setter for property kSHR.
void set_soft_vs_kinetic_hardness(PN_stdfloat value)
Setter for property kSKHR_CL.
void set_soft_vs_soft_hardness(PN_stdfloat value)
Setter for property kSSHR_CL.
void set_soft_vs_rigid_hardness(PN_stdfloat value)
Setter for property kSRHR_CL.
void set_anchors_hardness(PN_stdfloat value)
Setter for property kAHR.
PN_stdfloat get_velocities_correction_factor() const
Getter for property kVCF.
void set_dynamic_friction_coefficient(PN_stdfloat value)
Setter for property kDF.
PN_stdfloat get_lift_coefficient() const
Getter for property kLF.
int get_drift_solver_iterations() const
Getter for property diterations.
void set_drift_solver_iterations(int value)
Setter for property diterations.
PN_stdfloat get_drag_coefficient() const
Getter for property kDG.
PN_stdfloat get_timescale() const
Getter for property timescale.
void set_cluster_solver_iterations(int value)
Setter for property citerations.
int get_cluster_solver_iterations() const
Getter for property citerations.
PN_stdfloat get_rigid_contacts_hardness() const
Getter for property kCHR.
void set_pressure_coefficient(PN_stdfloat value)
Setter for property kPR.
void set_volume_conversation_coefficient(PN_stdfloat value)
Setter for property kVC.
PN_stdfloat get_soft_vs_soft_hardness() const
Getter for property kSSHR_CL.
void set_pose_matching_coefficient(PN_stdfloat value)
Setter for property kMT.