Panda3D
 All Classes Functions Variables Enumerations
physxJointLimitSoftDesc.cxx
1 // Filename: physxJointLimitSoftDesc.cxx
2 // Created by: enn0x (01Oct09)
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 "physxJointLimitSoftDesc.h"
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: PhysxJointLimitSoftDesc::set_value
19 // Access: Published
20 // Description:
21 ////////////////////////////////////////////////////////////////////
22 void PhysxJointLimitSoftDesc::
23 set_value(float value) {
24 
25  _desc.value = value;
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: PhysxJointLimitSoftDesc::set_restitution
30 // Access: Published
31 // Description:
32 ////////////////////////////////////////////////////////////////////
33 void PhysxJointLimitSoftDesc::
34 set_restitution(float restitution) {
35 
36  _desc.restitution = restitution;
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: PhysxJointLimitSoftDesc::set_spring
41 // Access: Published
42 // Description:
43 ////////////////////////////////////////////////////////////////////
44 void PhysxJointLimitSoftDesc::
45 set_spring(float spring) {
46 
47  _desc.spring = spring;
48 }
49 
50 ////////////////////////////////////////////////////////////////////
51 // Function: PhysxJointLimitSoftDesc::set_damping
52 // Access: Published
53 // Description:
54 ////////////////////////////////////////////////////////////////////
55 void PhysxJointLimitSoftDesc::
56 set_damping(float damping) {
57 
58  _desc.damping = damping;
59 }
60 
61 ////////////////////////////////////////////////////////////////////
62 // Function: PhysxJointLimitSoftDesc::get_value
63 // Access: Published
64 // Description:
65 ////////////////////////////////////////////////////////////////////
66 float PhysxJointLimitSoftDesc::
67 get_value() const {
68 
69  return _desc.value;
70 }
71 
72 ////////////////////////////////////////////////////////////////////
73 // Function: PhysxJointLimitSoftDesc::get_restitution
74 // Access: Published
75 // Description:
76 ////////////////////////////////////////////////////////////////////
77 float PhysxJointLimitSoftDesc::
78 get_restitution() const {
79 
80  return _desc.restitution;
81 }
82 
83 ////////////////////////////////////////////////////////////////////
84 // Function: PhysxJointLimitSoftDesc::get_spring
85 // Access: Published
86 // Description:
87 ////////////////////////////////////////////////////////////////////
88 float PhysxJointLimitSoftDesc::
89 get_spring() const {
90 
91  return _desc.spring;
92 }
93 
94 ////////////////////////////////////////////////////////////////////
95 // Function: PhysxJointLimitSoftDesc::get_damping
96 // Access: Published
97 // Description:
98 ////////////////////////////////////////////////////////////////////
99 float PhysxJointLimitSoftDesc::
100 get_damping() const {
101 
102  return _desc.damping;
103 }
104