Panda3D
 All Classes Functions Variables Enumerations
bulletFilterCallbackData.I
1 // Filename: bulletFilterCallbackData.I
2 // Created by: enn0x (26Nov12)
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: BulletFilterCallbackData::Constructor
17 // Access: Published
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE BulletFilterCallbackData::
21 BulletFilterCallbackData(PandaNode *node0, PandaNode *node1) :
22  _node0(node0),
23  _node1(node1),
24  _collide(false) {
25 
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: BulletFilterCallbackData::get_node_0
30 // Access: Published
31 // Description:
32 ////////////////////////////////////////////////////////////////////
33 INLINE PandaNode *BulletFilterCallbackData::
34 get_node_0() const {
35 
36  return _node0;
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: BulletFilterCallbackData::get_node_1
41 // Access: Published
42 // Description:
43 ////////////////////////////////////////////////////////////////////
44 INLINE PandaNode *BulletFilterCallbackData::
45 get_node_1() const {
46 
47  return _node1;
48 }
49 
50 ////////////////////////////////////////////////////////////////////
51 // Function: BulletFilterCallbackData::get_collide
52 // Access: Published
53 // Description:
54 ////////////////////////////////////////////////////////////////////
55 INLINE bool BulletFilterCallbackData::
56 get_collide() const {
57 
58  return _collide;
59 }
60 
61 ////////////////////////////////////////////////////////////////////
62 // Function: BulletFilterCallbackData::set_collide
63 // Access: Published
64 // Description:
65 ////////////////////////////////////////////////////////////////////
66 INLINE void BulletFilterCallbackData::
67 set_collide(bool collide) {
68 
69  _collide = collide;
70 }
71 
A basic node of the scene graph or data graph.
Definition: pandaNode.h:72