Panda3D
physxJointLimitDesc.cxx
1 // Filename: physxJointLimitDesc.cxx
2 // Created by: enn0x (28Sep09)
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 #include "physxJointLimitDesc.h"
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: PhysxJointLimitDesc::set_value
19 // Access: Published
20 // Description:
21 ////////////////////////////////////////////////////////////////////
22 void PhysxJointLimitDesc::
23 set_value(float value) {
24 
25  _desc.value = value;
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: PhysxJointLimitDesc::set_restitution
30 // Access: Published
31 // Description:
32 ////////////////////////////////////////////////////////////////////
33 void PhysxJointLimitDesc::
34 set_restitution(float restitution) {
35 
36  _desc.restitution = restitution;
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: PhysxJointLimitDesc::set_hardness
41 // Access: Published
42 // Description:
43 ////////////////////////////////////////////////////////////////////
44 void PhysxJointLimitDesc::
45 set_hardness(float hardness) {
46 
47  _desc.hardness = hardness;
48 }
49 
50 ////////////////////////////////////////////////////////////////////
51 // Function: PhysxJointLimitDesc::get_value
52 // Access: Published
53 // Description:
54 ////////////////////////////////////////////////////////////////////
55 float PhysxJointLimitDesc::
56 get_value() const {
57 
58  return _desc.value;
59 }
60 
61 ////////////////////////////////////////////////////////////////////
62 // Function: PhysxJointLimitDesc::get_restitution
63 // Access: Published
64 // Description:
65 ////////////////////////////////////////////////////////////////////
66 float PhysxJointLimitDesc::
67 get_restitution() const {
68 
69  return _desc.restitution;
70 }
71 
72 ////////////////////////////////////////////////////////////////////
73 // Function: PhysxJointLimitDesc::get_hardness
74 // Access: Published
75 // Description:
76 ////////////////////////////////////////////////////////////////////
77 float PhysxJointLimitDesc::
78 get_hardness() const {
79 
80  return _desc.hardness;
81 }
82