Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE PhysxControllersHit::
18PhysxControllersHit(const NxControllersHit &hit) :
19 _hit(hit) {
20
21}
22
23/**
24 *
25 */
26INLINE PhysxController *PhysxControllersHit::
27get_controller() const {
28
29 NxController *controllerPtr = _hit.controller;
30 PhysxController *controller = controllerPtr ? (PhysxController *)controllerPtr : nullptr;
31
32 return controller;
33}
34
35/**
36 *
37 */
38INLINE PhysxController *PhysxControllersHit::
39get_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.