Panda3D
physxWheel.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file physxWheel.cxx
10  * @author enn0x
11  * @date 2010-03-23
12  */
13 
14 #include "physxWheel.h"
15 #include "physxWheelDesc.h"
16 #include "physxWheelShape.h"
17 
18 TypeHandle PhysxWheel::_type_handle;
19 
20 /**
21  *
22  */
23 /*
24 PhysxWheelShape *PhysxWheel::
25 get_wheel_shape() const {
26 
27  return _wheelShape;
28 }
29 */
30 
31 /**
32  * Attaches a node path to this wheel. The node path's transform will be
33  * updated automatically.
34  *
35  * Note: any non-uniform scale or shear set on the NodePath's transform will
36  * be overwritten at the time of the first update.
37  */
38 /*
39 void PhysxWheel::
40 attach_node_path(const NodePath &np) {
41 
42  nassertv(_error_type == ET_ok);
43  nassertv_always(!np.is_empty());
44  _np = NodePath(np);
45 }
46 */
47 
48 /**
49  * Detaches a previously assigned NodePath from this wheel. The NodePath's
50  * transform will no longer be updated.
51  */
52 /*
53 void PhysxWheel::
54 detach_node_path() {
55 
56  nassertv(_error_type == ET_ok);
57  _np = NodePath();
58 }
59 */
60 
61 /**
62  * Retrieves a previously attached NodePath. An empty NodePath will be
63  * returned if no NodePath has been attached to this wheel.
64  */
65 /*
66 NodePath PhysxWheel::
67 get_node_path() const {
68 
69  nassertr(_error_type == ET_ok, NodePath::fail());
70  return _np;
71 }
72 */
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.