Panda3D
 All Classes Functions Variables Enumerations
bulletContactResult.I
1 // Filename: bulletContactResult.I
2 // Created by: enn0x (08Mar10)
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 ////////////////////////////////////////////////////////////////////
17 // Function: BulletContact::get_node0
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE PandaNode *BulletContact::
22 get_node0() const {
23 
24  return _node0;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: BulletContact::get_node1
29 // Access: Published
30 // Description:
31 ////////////////////////////////////////////////////////////////////
32 INLINE PandaNode *BulletContact::
33 get_node1() const {
34 
35  return _node1;
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: BulletContact::get_manifold_point
40 // Access: Published
41 // Description:
42 ////////////////////////////////////////////////////////////////////
43 INLINE BulletManifoldPoint &BulletContact::
44 get_manifold_point() {
45 
46  return _mp;
47 }
48 
49 ////////////////////////////////////////////////////////////////////
50 // Function: BulletContact::get_idx0
51 // Access: Published
52 // Description:
53 ////////////////////////////////////////////////////////////////////
54 INLINE int BulletContact::
55 get_idx0() const {
56 
57  return _idx0;
58 }
59 
60 ////////////////////////////////////////////////////////////////////
61 // Function: BulletContact::get_idx1
62 // Access: Published
63 // Description:
64 ////////////////////////////////////////////////////////////////////
65 INLINE int BulletContact::
66 get_idx1() const {
67 
68  return _idx1;
69 }
70 
71 ////////////////////////////////////////////////////////////////////
72 // Function: BulletContact::get_part_id0
73 // Access: Published
74 // Description:
75 ////////////////////////////////////////////////////////////////////
76 INLINE int BulletContact::
77 get_part_id0() const {
78 
79  return _part_id0;
80 }
81 
82 ////////////////////////////////////////////////////////////////////
83 // Function: BulletContact::get_part_id1
84 // Access: Published
85 // Description:
86 ////////////////////////////////////////////////////////////////////
87 INLINE int BulletContact::
88 get_part_id1() const {
89 
90  return _part_id1;
91 }
92 
93 ////////////////////////////////////////////////////////////////////
94 // Function: BulletContactResult::get_num_contacts
95 // Access: Published
96 // Description:
97 ////////////////////////////////////////////////////////////////////
98 INLINE int BulletContactResult::
99 get_num_contacts() const {
100 
101  return _contacts.size();
102 }
103 
104 ////////////////////////////////////////////////////////////////////
105 // Function: BulletContactResult::get_contact
106 // Access: Published
107 // Description:
108 ////////////////////////////////////////////////////////////////////
109 INLINE BulletContact &BulletContactResult::
110 get_contact(int idx) {
111 
112  nassertr(idx >= 0 && idx < (int)_contacts.size(), _empty);
113  return _contacts[idx];
114 }
A basic node of the scene graph or data graph.
Definition: pandaNode.h:72