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