Panda3D
 All Classes Functions Variables Enumerations
physxConstraintDominance.cxx
1 // Filename: physxConstraintDominance.cxx
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 #include "physxConstraintDominance.h"
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: PhysxConstraintDominance::get_0
19 // Access: Published
20 // Description: Retruns the first dominance factor.
21 ////////////////////////////////////////////////////////////////////
23 get_0() const {
24 
25  return _dominance.dominance0;
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: PhysxConstraintDominance::get_1
30 // Access: Published
31 // Description: Returns the second dominance factor.
32 ////////////////////////////////////////////////////////////////////
34 get_1() const {
35 
36  return _dominance.dominance1;
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: PhysxConstraintDominance::set_0
41 // Access: Published
42 // Description: Sets the first dominance factor.
43 ////////////////////////////////////////////////////////////////////
45 set_0(float d0) {
46 
47  _dominance.dominance0 = d0;
48 }
49 
50 ////////////////////////////////////////////////////////////////////
51 // Function: PhysxConstraintDominance::set_1
52 // Access: Published
53 // Description: Sets the second dominance factor.
54 ////////////////////////////////////////////////////////////////////
56 set_1(float d1) {
57 
58  _dominance.dominance1 = d1;
59 }
60 
float get_1() const
Returns the second dominance factor.
void set_1(float d1)
Sets the second dominance factor.
void set_0(float d0)
Sets the first dominance factor.
float get_0() const
Retruns the first dominance factor.