00001 // Filename: physxJointLimitSoftDesc.cxx 00002 // Created by: enn0x (01Oct09) 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 "physxJointLimitSoftDesc.h" 00016 00017 //////////////////////////////////////////////////////////////////// 00018 // Function: PhysxJointLimitSoftDesc::set_value 00019 // Access: Published 00020 // Description: 00021 //////////////////////////////////////////////////////////////////// 00022 void PhysxJointLimitSoftDesc:: 00023 set_value(float value) { 00024 00025 _desc.value = value; 00026 } 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function: PhysxJointLimitSoftDesc::set_restitution 00030 // Access: Published 00031 // Description: 00032 //////////////////////////////////////////////////////////////////// 00033 void PhysxJointLimitSoftDesc:: 00034 set_restitution(float restitution) { 00035 00036 _desc.restitution = restitution; 00037 } 00038 00039 //////////////////////////////////////////////////////////////////// 00040 // Function: PhysxJointLimitSoftDesc::set_spring 00041 // Access: Published 00042 // Description: 00043 //////////////////////////////////////////////////////////////////// 00044 void PhysxJointLimitSoftDesc:: 00045 set_spring(float spring) { 00046 00047 _desc.spring = spring; 00048 } 00049 00050 //////////////////////////////////////////////////////////////////// 00051 // Function: PhysxJointLimitSoftDesc::set_damping 00052 // Access: Published 00053 // Description: 00054 //////////////////////////////////////////////////////////////////// 00055 void PhysxJointLimitSoftDesc:: 00056 set_damping(float damping) { 00057 00058 _desc.damping = damping; 00059 } 00060 00061 //////////////////////////////////////////////////////////////////// 00062 // Function: PhysxJointLimitSoftDesc::get_value 00063 // Access: Published 00064 // Description: 00065 //////////////////////////////////////////////////////////////////// 00066 float PhysxJointLimitSoftDesc:: 00067 get_value() const { 00068 00069 return _desc.value; 00070 } 00071 00072 //////////////////////////////////////////////////////////////////// 00073 // Function: PhysxJointLimitSoftDesc::get_restitution 00074 // Access: Published 00075 // Description: 00076 //////////////////////////////////////////////////////////////////// 00077 float PhysxJointLimitSoftDesc:: 00078 get_restitution() const { 00079 00080 return _desc.restitution; 00081 } 00082 00083 //////////////////////////////////////////////////////////////////// 00084 // Function: PhysxJointLimitSoftDesc::get_spring 00085 // Access: Published 00086 // Description: 00087 //////////////////////////////////////////////////////////////////// 00088 float PhysxJointLimitSoftDesc:: 00089 get_spring() const { 00090 00091 return _desc.spring; 00092 } 00093 00094 //////////////////////////////////////////////////////////////////// 00095 // Function: PhysxJointLimitSoftDesc::get_damping 00096 // Access: Published 00097 // Description: 00098 //////////////////////////////////////////////////////////////////// 00099 float PhysxJointLimitSoftDesc:: 00100 get_damping() const { 00101 00102 return _desc.damping; 00103 } 00104