Panda3D
|
00001 // Filename: physxWheel.cxx 00002 // Created by: enn0x (23Mar10) 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 "physxWheel.h" 00016 #include "physxWheelDesc.h" 00017 #include "physxWheelShape.h" 00018 00019 TypeHandle PhysxWheel::_type_handle; 00020 00021 /* 00022 //////////////////////////////////////////////////////////////////// 00023 // Function: PhysxWheel::get_wheel_shape 00024 // Access: Published 00025 // Description: 00026 //////////////////////////////////////////////////////////////////// 00027 PhysxWheelShape *PhysxWheel:: 00028 get_wheel_shape() const { 00029 00030 return _wheelShape; 00031 } 00032 */ 00033 00034 /* 00035 //////////////////////////////////////////////////////////////////// 00036 // Function: PhysxWheel::attach_node_path 00037 // Access: Published 00038 // Description: Attaches a node path to this wheel. The node 00039 // path's transform will be updated automatically. 00040 // 00041 // Note: any non-uniform scale or shear set on the 00042 // NodePath's transform will be overwritten at the 00043 // time of the first update. 00044 //////////////////////////////////////////////////////////////////// 00045 void PhysxWheel:: 00046 attach_node_path(const NodePath &np) { 00047 00048 nassertv(_error_type == ET_ok); 00049 nassertv_always(!np.is_empty()); 00050 _np = NodePath(np); 00051 } 00052 00053 //////////////////////////////////////////////////////////////////// 00054 // Function: PhysxWheel::detach_node_path 00055 // Access: Published 00056 // Description: Detaches a previously assigned NodePath from this 00057 // wheel. The NodePath's transform will no longer 00058 // be updated. 00059 //////////////////////////////////////////////////////////////////// 00060 void PhysxWheel:: 00061 detach_node_path() { 00062 00063 nassertv(_error_type == ET_ok); 00064 _np = NodePath(); 00065 } 00066 00067 //////////////////////////////////////////////////////////////////// 00068 // Function: PhysxWheel::get_node_path 00069 // Access: Published 00070 // Description: Retrieves a previously attached NodePath. An empty 00071 // NodePath will be returned if no NodePath has been 00072 // attached to this wheel. 00073 //////////////////////////////////////////////////////////////////// 00074 NodePath PhysxWheel:: 00075 get_node_path() const { 00076 00077 nassertr(_error_type == ET_ok, NodePath::fail()); 00078 return _np; 00079 } 00080 */ 00081