Panda3D
bulletContactCallbackData.I
1 // Filename: bulletContactCallbackData.I
2 // Created by: enn0x (22Nov12)
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 ////////////////////////////////////////////////////////////////////
16 // Function: BulletContactCallbackData::Constructor
17 // Access: Published
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE BulletContactCallbackData::
21 BulletContactCallbackData(BulletManifoldPoint &mp, PandaNode *node0, PandaNode *node1, int id0, int id1, int index0, int index1) :
22  _mp(mp),
23  _node0(node0),
24  _node1(node1),
25  _id0(id0),
26  _id1(id1),
27  _index0(index0),
28  _index1(index1) {
29 
30 }
31 
32 ////////////////////////////////////////////////////////////////////
33 // Function: BulletContactCallbackData::get_manifold
34 // Access: Published
35 // Description:
36 ////////////////////////////////////////////////////////////////////
37 INLINE BulletManifoldPoint &BulletContactCallbackData::
38 get_manifold() const {
39 
40  return _mp;
41 }
42 
43 ////////////////////////////////////////////////////////////////////
44 // Function: BulletContactCallbackData::get_node0
45 // Access: Published
46 // Description:
47 ////////////////////////////////////////////////////////////////////
48 INLINE PandaNode *BulletContactCallbackData::
49 get_node0() const {
50 
51  return _node0;
52 }
53 
54 ////////////////////////////////////////////////////////////////////
55 // Function: BulletContactCallbackData::get_node1
56 // Access: Published
57 // Description:
58 ////////////////////////////////////////////////////////////////////
59 INLINE PandaNode *BulletContactCallbackData::
60 get_node1() const {
61 
62  return _node1;
63 }
64 
65 ////////////////////////////////////////////////////////////////////
66 // Function: BulletContactCallbackData::get_part_id0
67 // Access: Published
68 // Description:
69 ////////////////////////////////////////////////////////////////////
70 INLINE int BulletContactCallbackData::
71 get_part_id0() const {
72 
73  return _id0;
74 }
75 
76 ////////////////////////////////////////////////////////////////////
77 // Function: BulletContactCallbackData::get_part_id1
78 // Access: Published
79 // Description:
80 ////////////////////////////////////////////////////////////////////
81 INLINE int BulletContactCallbackData::
82 get_part_id1() const {
83 
84  return _id1;
85 }
86 
87 ////////////////////////////////////////////////////////////////////
88 // Function: BulletContactCallbackData::get_index0
89 // Access: Published
90 // Description:
91 ////////////////////////////////////////////////////////////////////
92 INLINE int BulletContactCallbackData::
93 get_index0() const {
94 
95  return _index0;
96 }
97 
98 ////////////////////////////////////////////////////////////////////
99 // Function: BulletContactCallbackData::get_index1
100 // Access: Published
101 // Description:
102 ////////////////////////////////////////////////////////////////////
103 INLINE int BulletContactCallbackData::
104 get_index1() const {
105 
106  return _index1;
107 }
108 
A basic node of the scene graph or data graph.
Definition: pandaNode.h:72