00001 // Filename: physxJointLimitDesc.cxx 00002 // Created by: enn0x (28Sep09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #include "physxJointLimitDesc.h" 00016 00017 //////////////////////////////////////////////////////////////////// 00018 // Function: PhysxJointLimitDesc::set_value 00019 // Access: Published 00020 // Description: 00021 //////////////////////////////////////////////////////////////////// 00022 void PhysxJointLimitDesc:: 00023 set_value(float value) { 00024 00025 _desc.value = value; 00026 } 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function: PhysxJointLimitDesc::set_restitution 00030 // Access: Published 00031 // Description: 00032 //////////////////////////////////////////////////////////////////// 00033 void PhysxJointLimitDesc:: 00034 set_restitution(float restitution) { 00035 00036 _desc.restitution = restitution; 00037 } 00038 00039 //////////////////////////////////////////////////////////////////// 00040 // Function: PhysxJointLimitDesc::set_hardness 00041 // Access: Published 00042 // Description: 00043 //////////////////////////////////////////////////////////////////// 00044 void PhysxJointLimitDesc:: 00045 set_hardness(float hardness) { 00046 00047 _desc.hardness = hardness; 00048 } 00049 00050 //////////////////////////////////////////////////////////////////// 00051 // Function: PhysxJointLimitDesc::get_value 00052 // Access: Published 00053 // Description: 00054 //////////////////////////////////////////////////////////////////// 00055 float PhysxJointLimitDesc:: 00056 get_value() const { 00057 00058 return _desc.value; 00059 } 00060 00061 //////////////////////////////////////////////////////////////////// 00062 // Function: PhysxJointLimitDesc::get_restitution 00063 // Access: Published 00064 // Description: 00065 //////////////////////////////////////////////////////////////////// 00066 float PhysxJointLimitDesc:: 00067 get_restitution() const { 00068 00069 return _desc.restitution; 00070 } 00071 00072 //////////////////////////////////////////////////////////////////// 00073 // Function: PhysxJointLimitDesc::get_hardness 00074 // Access: Published 00075 // Description: 00076 //////////////////////////////////////////////////////////////////// 00077 float PhysxJointLimitDesc:: 00078 get_hardness() const { 00079 00080 return _desc.hardness; 00081 } 00082