Panda3D
 All Classes Functions Variables Enumerations
physxWheel.cxx
1 // Filename: physxWheel.cxx
2 // Created by: enn0x (23Mar10)
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 "physxWheel.h"
16 #include "physxWheelDesc.h"
17 #include "physxWheelShape.h"
18 
19 TypeHandle PhysxWheel::_type_handle;
20 
21 /*
22 ////////////////////////////////////////////////////////////////////
23 // Function: PhysxWheel::get_wheel_shape
24 // Access: Published
25 // Description:
26 ////////////////////////////////////////////////////////////////////
27 PhysxWheelShape *PhysxWheel::
28 get_wheel_shape() const {
29 
30  return _wheelShape;
31 }
32 */
33 
34 /*
35 ////////////////////////////////////////////////////////////////////
36 // Function: PhysxWheel::attach_node_path
37 // Access: Published
38 // Description: Attaches a node path to this wheel. The node
39 // path's transform will be updated automatically.
40 //
41 // Note: any non-uniform scale or shear set on the
42 // NodePath's transform will be overwritten at the
43 // time of the first update.
44 ////////////////////////////////////////////////////////////////////
45 void PhysxWheel::
46 attach_node_path(const NodePath &np) {
47 
48  nassertv(_error_type == ET_ok);
49  nassertv_always(!np.is_empty());
50  _np = NodePath(np);
51 }
52 
53 ////////////////////////////////////////////////////////////////////
54 // Function: PhysxWheel::detach_node_path
55 // Access: Published
56 // Description: Detaches a previously assigned NodePath from this
57 // wheel. The NodePath's transform will no longer
58 // be updated.
59 ////////////////////////////////////////////////////////////////////
60 void PhysxWheel::
61 detach_node_path() {
62 
63  nassertv(_error_type == ET_ok);
64  _np = NodePath();
65 }
66 
67 ////////////////////////////////////////////////////////////////////
68 // Function: PhysxWheel::get_node_path
69 // Access: Published
70 // Description: Retrieves a previously attached NodePath. An empty
71 // NodePath will be returned if no NodePath has been
72 // attached to this wheel.
73 ////////////////////////////////////////////////////////////////////
74 NodePath PhysxWheel::
75 get_node_path() const {
76 
77  nassertr(_error_type == ET_ok, NodePath::fail());
78  return _np;
79 }
80 */
81 
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85