Panda3D
physxControllersHit.I
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 physxControllersHit.I
10  * @author enn0x
11  * @date 2012-11-28
12  */
13 
14 /**
15  *
16  */
17 INLINE PhysxControllersHit::
18 PhysxControllersHit(const NxControllersHit &hit) :
19  _hit(hit) {
20 
21 }
22 
23 /**
24  *
25  */
26 INLINE PhysxController *PhysxControllersHit::
27 get_controller() const {
28 
29  NxController *controllerPtr = _hit.controller;
30  PhysxController *controller = controllerPtr ? (PhysxController *)controllerPtr : nullptr;
31 
32  return controller;
33 }
34 
35 /**
36  *
37  */
38 INLINE PhysxController *PhysxControllersHit::
39 get_other() const {
40 
41  NxController *otherPtr = _hit.other;
42  PhysxController *other = otherPtr ? (PhysxController *)otherPtr : nullptr;
43 
44  return other;
45 }
Abstract base class for character controllers.