Panda3D
physxConstraintDominance.h
1 // Filename: physxConstraintDominance.h
2 // Created by: enn0x (22Dec09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PHYSXCONSTRAINTDOMINANCE_H
16 #define PHYSXCONSTRAINTDOMINANCE_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 
21 #include "config_physx.h"
22 
23 class PhysxShape;
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : PhysxConstraintDominance
27 // Description : Expresses the dominance relationship of a
28 // constraint. For the time being only three settings
29 // are permitted:. (1.0f, 1.0f), (0.0f, 1.0f), and
30 // (1.0f, 0.0f).
31 //
32 // See PhysxScene::set_dominance_group_pair for a
33 // detailed explanation of dominance behaviour.
34 ////////////////////////////////////////////////////////////////////
35 class EXPCL_PANDAPHYSX PhysxConstraintDominance {
36 
37 PUBLISHED:
38  INLINE PhysxConstraintDominance(float d0, float d1);
39  INLINE ~PhysxConstraintDominance();
40 
41  float get_0() const;
42  float get_1() const;
43  void set_0(float d0);
44  void set_1(float d1);
45 
46 public:
47  INLINE void set_dominance(NxConstraintDominance value);
48  INLINE NxConstraintDominance get_dominance() const;
49 
50 private:
51  NxConstraintDominance _dominance;
52 };
53 
54 #include "physxConstraintDominance.I"
55 
56 #endif // PHYSXCONSTRAINTDOMINANCE_H
Abstract base class for shapes.
Definition: physxShape.h:41
Expresses the dominance relationship of a constraint.