Panda3D

bulletContactCallbackData.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 bulletContactCallbackData.I
10 * @author enn0x
11 * @date 2012-11-22
12 */
13
14 /**
15 *
16 */
17 INLINE BulletContactCallbackData::
18 BulletContactCallbackData(BulletManifoldPoint &mp, PandaNode *node0, PandaNode *node1, int id0, int id1, int index0, int index1) :
19 _mp(mp),
20 _node0(node0),
21 _node1(node1),
22 _id0(id0),
23 _id1(id1),
24 _index0(index0),
25 _index1(index1) {
26
27 }
28
29 /**
30 *
31 */
32 INLINE BulletManifoldPoint &BulletContactCallbackData::
33 get_manifold() const {
34
35 return _mp;
36 }
37
38 /**
39 *
40 */
41 INLINE PandaNode *BulletContactCallbackData::
42 get_node0() const {
43
44 return _node0;
45 }
46
47 /**
48 *
49 */
50 INLINE PandaNode *BulletContactCallbackData::
51 get_node1() const {
52
53 return _node1;
54 }
55
56 /**
57 *
58 */
59 INLINE int BulletContactCallbackData::
60 get_part_id0() const {
61
62 return _id0;
63 }
64
65 /**
66 *
67 */
68 INLINE int BulletContactCallbackData::
69 get_part_id1() const {
70
71 return _id1;
72 }
73
74 /**
75 *
76 */
77 INLINE int BulletContactCallbackData::
78 get_index0() const {
79
80 return _index0;
81 }
82
83 /**
84 *
85 */
86 INLINE int BulletContactCallbackData::
87 get_index1() const {
88
89 return _index1;
90 }
BulletManifoldPoint
Definition: bulletManifoldPoint.h:27
PandaNode
A basic node of the scene graph or data graph.
Definition: pandaNode.h:65