Panda3D
Loading...
Searching...
No Matches
bulletContactResult.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 bulletContactResult.I
10 * @author enn0x
11 * @date 2010-03-08
12 */
13
14/**
15 *
16 */
17INLINE PandaNode *BulletContact::
18get_node0() const {
19
20 return _node0;
21}
22
23/**
24 *
25 */
26INLINE PandaNode *BulletContact::
27get_node1() const {
28
29 return _node1;
30}
31
32/**
33 *
34 */
35INLINE BulletManifoldPoint &BulletContact::
36get_manifold_point() {
37
38 return _mp;
39}
40
41/**
42 *
43 */
44INLINE int BulletContact::
45get_idx0() const {
46
47 return _idx0;
48}
49
50/**
51 *
52 */
53INLINE int BulletContact::
54get_idx1() const {
55
56 return _idx1;
57}
58
59/**
60 *
61 */
62INLINE int BulletContact::
63get_part_id0() const {
64
65 return _part_id0;
66}
67
68/**
69 *
70 */
71INLINE int BulletContact::
72get_part_id1() const {
73
74 return _part_id1;
75}
76
77/**
78 *
79 */
80INLINE int BulletContactResult::
81get_num_contacts() const {
82
83 return _contacts.size();
84}
85
86/**
87 *
88 */
89INLINE BulletContact BulletContactResult::
90get_contact(int idx) {
91
92 nassertr(idx >= 0 && idx < (int)_contacts.size(), _empty);
93 return _contacts[idx];
94}
A basic node of the scene graph or data graph.
Definition pandaNode.h:65