Panda3D
|
00001 // Filename: physxConstraintDominance.h 00002 // Created by: enn0x (22Dec09) 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 PHYSXCONSTRAINTDOMINANCE_H 00016 #define PHYSXCONSTRAINTDOMINANCE_H 00017 00018 #include "pandabase.h" 00019 #include "lvector3.h" 00020 #include "lpoint3.h" 00021 00022 #include "config_physx.h" 00023 00024 class PhysxShape; 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Class : PhysxConstraintDominance 00028 // Description : Expresses the dominance relationship of a 00029 // constraint. For the time being only three settings 00030 // are permitted:. (1.0f, 1.0f), (0.0f, 1.0f), and 00031 // (1.0f, 0.0f). 00032 // 00033 // See PhysxScene::set_dominance_group_pair for a 00034 // detailed explanation of dominance behaviour. 00035 //////////////////////////////////////////////////////////////////// 00036 class EXPCL_PANDAPHYSX PhysxConstraintDominance { 00037 00038 PUBLISHED: 00039 INLINE PhysxConstraintDominance(float d0, float d1); 00040 INLINE ~PhysxConstraintDominance(); 00041 00042 float get_0() const; 00043 float get_1() const; 00044 void set_0(float d0); 00045 void set_1(float d1); 00046 00047 public: 00048 INLINE void set_dominance(NxConstraintDominance value); 00049 INLINE NxConstraintDominance get_dominance() const; 00050 00051 private: 00052 NxConstraintDominance _dominance; 00053 }; 00054 00055 #include "physxConstraintDominance.I" 00056 00057 #endif // PHYSXCONSTRAINTDOMINANCE_H