00001 // Filename: physxBoxControllerDesc.I 00002 // Created by: enn0x (22Sep09) 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 00016 00017 //////////////////////////////////////////////////////////////////// 00018 // Function: PhysxBoxControllerDesc::Constructor 00019 // Access: Published 00020 // Description: 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE PhysxBoxControllerDesc:: 00023 PhysxBoxControllerDesc() : PhysxControllerDesc() { 00024 00025 _desc.upDirection = (NxHeightFieldAxis)physx_up_axis.get_value(); 00026 } 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function: PhysxBoxControllerDesc::Destructor 00030 // Access: Published 00031 // Description: 00032 //////////////////////////////////////////////////////////////////// 00033 INLINE PhysxBoxControllerDesc:: 00034 ~PhysxBoxControllerDesc() { 00035 00036 } 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function: PhysxBoxControllerDesc::set_to_default 00040 // Access: Published 00041 // Description: (re)sets the structure to the default. 00042 //////////////////////////////////////////////////////////////////// 00043 INLINE void PhysxBoxControllerDesc:: 00044 set_to_default() { 00045 00046 _desc.setToDefault(); 00047 } 00048 00049 //////////////////////////////////////////////////////////////////// 00050 // Function: PhysxBoxControllerDesc::is_valid 00051 // Access: Published 00052 // Description: Returns true if the descriptor is valid. 00053 //////////////////////////////////////////////////////////////////// 00054 INLINE bool PhysxBoxControllerDesc:: 00055 is_valid() const { 00056 00057 return _desc.isValid(); 00058 } 00059