Panda3D
physxWheel.h
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.h
10  * @author enn0x
11  * @date 2010-03-23
12  */
13 
14 #ifndef PHYSXWHEEL_H
15 #define PHYSXWHEEL_H
16 
17 #include "pandabase.h"
18 #include "nodePath.h"
19 
20 #include "physxObject.h"
21 #include "physx_includes.h"
22 
23 class PhysxWheelDesc;
24 class PhysxWheelShape;
25 
26 /**
27  *
28  */
29 class EXPCL_PANDAPHYSX PhysxWheel : public PhysxObject {
30 
31 PUBLISHED:
32  INLINE PhysxWheel();
33  INLINE ~PhysxWheel();
34 
35  //PhysxActor *get_touched_actor() const;
36  //PhysxWheelShape *get_wheel_shape() const;
37 
38  //void attach_node_path(const NodePath &np);
39  //void detach_node_path();
40  //NodePath get_node_path() const;
41 
42  INLINE void ls() const;
43  INLINE void ls(std::ostream &out, int indent_level=0) const;
44 
45 private:
46  PT(PhysxWheelShape) _wheelShape;
47  NodePath _np;
48 
49 public:
50  static TypeHandle get_class_type() {
51  return _type_handle;
52  }
53  static void init_type() {
54  PhysxObject::init_type();
55  register_type(_type_handle, "PhysxWheel",
56  PhysxObject::get_class_type());
57  }
58  virtual TypeHandle get_type() const {
59  return get_class_type();
60  }
61  virtual TypeHandle force_init_type() {
62  init_type();
63  return get_class_type();
64  }
65 
66 private:
67  static TypeHandle _type_handle;
68 };
69 
70 #include "physxWheel.I"
71 
72 #endif // PHYSXWHEEL_H
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:159
A special shape used for simulating a car wheel.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition: register_type.I:22