Panda3D
 All Classes Functions Variables Enumerations
physxWheel.h
1 // Filename: physxWheel.h
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 #ifndef PHYSXWHEEL_H
16 #define PHYSXWHEEL_H
17 
18 #include "pandabase.h"
19 #include "nodePath.h"
20 
21 #include "physxObject.h"
22 #include "physx_includes.h"
23 
24 class PhysxWheelDesc;
25 class PhysxWheelShape;
26 
27 ////////////////////////////////////////////////////////////////////
28 // Class : PhysxWheel
29 // Description :
30 ////////////////////////////////////////////////////////////////////
31 class EXPCL_PANDAPHYSX PhysxWheel : public PhysxObject {
32 
33 PUBLISHED:
34  INLINE PhysxWheel();
35  INLINE ~PhysxWheel();
36 
37  //PhysxActor *get_touched_actor() const;
38  //PhysxWheelShape *get_wheel_shape() const;
39 
40  //void attach_node_path(const NodePath &np);
41  //void detach_node_path();
42  //NodePath get_node_path() const;
43 
44  INLINE void ls() const;
45  INLINE void ls(ostream &out, int indent_level=0) const;
46 
47 public:
48 
49 private:
50  PT(PhysxWheelShape) _wheelShape;
51  NodePath _np;
52 
53 ////////////////////////////////////////////////////////////////////
54 public:
55  static TypeHandle get_class_type() {
56  return _type_handle;
57  }
58  static void init_type() {
59  PhysxObject::init_type();
60  register_type(_type_handle, "PhysxWheel",
61  PhysxObject::get_class_type());
62  }
63  virtual TypeHandle get_type() const {
64  return get_class_type();
65  }
66  virtual TypeHandle force_init_type() {
67  init_type();
68  return get_class_type();
69  }
70 
71 private:
72  static TypeHandle _type_handle;
73 };
74 
75 #include "physxWheel.I"
76 
77 #endif // PHYSXWHEEL_H
A special shape used for simulating a car wheel.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165