Panda3D
|
00001 // Filename: physxDistanceJointDesc.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 PHYSXDISTANCEJOINTDESC_H 00016 #define PHYSXDISTANCEJOINTDESC_H 00017 00018 #include "pandabase.h" 00019 00020 #include "physxJointDesc.h" 00021 #include "physx_includes.h" 00022 00023 class PhysxSpringDesc; 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : PhysxDistanceJointDesc 00027 // Description : Descriptor class for distance joint. See 00028 // PhysxDistanceJoint. 00029 //////////////////////////////////////////////////////////////////// 00030 class EXPCL_PANDAPHYSX PhysxDistanceJointDesc : public PhysxJointDesc { 00031 00032 PUBLISHED: 00033 INLINE PhysxDistanceJointDesc(); 00034 INLINE ~PhysxDistanceJointDesc(); 00035 00036 INLINE void set_to_default(); 00037 INLINE bool is_valid() const; 00038 00039 void set_max_distance(float distance); 00040 void set_min_distance(float distance); 00041 void set_spring(const PhysxSpringDesc &spring); 00042 void set_flag(PhysxDistanceJointFlag flag, bool value); 00043 00044 float get_max_distance() const; 00045 float get_min_distance() const; 00046 bool get_flag(PhysxDistanceJointFlag flag) const; 00047 PhysxSpringDesc get_spring() const; 00048 00049 public: 00050 NxJointDesc *ptr() const { return (NxJointDesc *)&_desc; }; 00051 NxDistanceJointDesc _desc; 00052 }; 00053 00054 #include "physxDistanceJointDesc.I" 00055 00056 #endif // PHYSXDISTANCEJOINTDESC_H