Panda3D
|
00001 // Filename: physxConstraintDominance.cxx 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 #include "physxConstraintDominance.h" 00016 00017 //////////////////////////////////////////////////////////////////// 00018 // Function: PhysxConstraintDominance::get_0 00019 // Access: Published 00020 // Description: Retruns the first dominance factor. 00021 //////////////////////////////////////////////////////////////////// 00022 float PhysxConstraintDominance:: 00023 get_0() const { 00024 00025 return _dominance.dominance0; 00026 } 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function: PhysxConstraintDominance::get_1 00030 // Access: Published 00031 // Description: Returns the second dominance factor. 00032 //////////////////////////////////////////////////////////////////// 00033 float PhysxConstraintDominance:: 00034 get_1() const { 00035 00036 return _dominance.dominance1; 00037 } 00038 00039 //////////////////////////////////////////////////////////////////// 00040 // Function: PhysxConstraintDominance::set_0 00041 // Access: Published 00042 // Description: Sets the first dominance factor. 00043 //////////////////////////////////////////////////////////////////// 00044 void PhysxConstraintDominance:: 00045 set_0(float d0) { 00046 00047 _dominance.dominance0 = d0; 00048 } 00049 00050 //////////////////////////////////////////////////////////////////// 00051 // Function: PhysxConstraintDominance::set_1 00052 // Access: Published 00053 // Description: Sets the second dominance factor. 00054 //////////////////////////////////////////////////////////////////// 00055 void PhysxConstraintDominance:: 00056 set_1(float d1) { 00057 00058 _dominance.dominance1 = d1; 00059 } 00060