Panda3D
bulletSoftBodyControl.I
1 // Filename: bulletSoftBodyControl.I
2 // Created by: enn0x (04Mar10)
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 ////////////////////////////////////////////////////////////////////
17 // Function: BulletSoftBodyControl::set_goal
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE void BulletSoftBodyControl::
22 set_goal(PN_stdfloat goal) {
23 
24  _goal = (btScalar)goal;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: BulletSoftBodyControl::set_max_torque
29 // Access: Published
30 // Description:
31 ////////////////////////////////////////////////////////////////////
32 INLINE void BulletSoftBodyControl::
33 set_max_torque(PN_stdfloat maxtorque) {
34 
35  _maxtorque = (btScalar)maxtorque;
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: BulletSoftBodyControl::set_angle
40 // Access: Published
41 // Description:
42 ////////////////////////////////////////////////////////////////////
43 INLINE void BulletSoftBodyControl::
44 set_angle(PN_stdfloat angle) {
45 
46  _angle = (btScalar)angle;
47 }
48 
49 ////////////////////////////////////////////////////////////////////
50 // Function: BulletSoftBodyControl::set_sign
51 // Access: Published
52 // Description:
53 ////////////////////////////////////////////////////////////////////
54 INLINE void BulletSoftBodyControl::
55 set_sign(PN_stdfloat sign) {
56 
57  _sign = (btScalar)sign;
58 }
59