Panda3D
|
00001 // Filename: physxJointLimitDesc.h 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 #ifndef PHYSXJOINTLIMITDESC_H 00016 #define PHYSXJOINTLIMITDESC_H 00017 00018 #include "pandabase.h" 00019 00020 #include "physx_includes.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : PhysxJointLimitDesc 00024 // Description : Describes a joint limit. 00025 //////////////////////////////////////////////////////////////////// 00026 class PhysxJointLimitDesc { 00027 00028 PUBLISHED: 00029 INLINE PhysxJointLimitDesc(); 00030 INLINE PhysxJointLimitDesc(float value, float restitution, float hardness); 00031 INLINE ~PhysxJointLimitDesc(); 00032 00033 void set_value(float value); 00034 void set_restitution(float restitution); 00035 void set_hardness(float hardness); 00036 00037 float get_value() const; 00038 float get_restitution() const; 00039 float get_hardness() const; 00040 00041 public: 00042 NxJointLimitDesc _desc; 00043 }; 00044 00045 #include "physxJointLimitDesc.I" 00046 00047 #endif // PHYSXJOINTLIMITDESC_H