Panda3D
 All Classes Functions Variables Enumerations
physxControllersHit.h
1 // Filename: physxControllersHit.h
2 // Created by: enn0x (28Nov12)
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 PHYSXCONTROLLERSHIT
16 #define PHYSXCONTROLLERSHIT
17 
18 #include "pandabase.h"
19 #include "callbackData.h"
20 #include "callbackObject.h"
21 
22 #include "physx_includes.h"
23 
24 class PhysxController;
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : PhysxControllersHit
28 // Description :
29 ////////////////////////////////////////////////////////////////////
30 class EXPCL_PANDAPHYSX PhysxControllersHit : public CallbackData {
31 
32 PUBLISHED:
33  INLINE PhysxControllersHit(const NxControllersHit &hit);
34 
35  INLINE PhysxController *get_controller() const;
36  INLINE PhysxController *get_other() const;
37 
38 private:
39  const NxControllersHit &_hit;
40 
41 ////////////////////////////////////////////////////////////////////
42 public:
43  static TypeHandle get_class_type() {
44  return _type_handle;
45  }
46  static void init_type() {
47  CallbackData::init_type();
48  register_type(_type_handle, "PhysxControllersHit",
49  CallbackData::get_class_type());
50  }
51  virtual TypeHandle get_type() const {
52  return get_class_type();
53  }
54  virtual TypeHandle force_init_type() {
55  init_type();
56  return get_class_type();
57  }
58 
59 private:
60  static TypeHandle _type_handle;
61 };
62 
63 #include "physxControllersHit.I"
64 
65 #endif // PHYSXCONTROLLERSHIT
This is a generic data block that is passed along to a CallbackObject when a callback is made...
Definition: callbackData.h:32
Abstract base class for character controllers.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85