Panda3D
bulletDebugNode.I
1 // Filename: bulletDebugNode.I
2 // Created by: enn0x (23Jan10)
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: BulletDebugNode::Destructor
17 // Access: Published
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE BulletDebugNode::
21 ~BulletDebugNode() {
22 
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: BulletDebugNode::show_wireframe
27 // Access: Published
28 // Description:
29 ////////////////////////////////////////////////////////////////////
30 INLINE void BulletDebugNode::
31 show_wireframe(bool show) {
32 
33  _wireframe = show;
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: BulletDebugNode::show_constraints
39 // Access: Published
40 // Description:
41 ////////////////////////////////////////////////////////////////////
42 INLINE void BulletDebugNode::
43 show_constraints(bool show) {
44 
45  _constraints = show;
47 }
48 
49 ////////////////////////////////////////////////////////////////////
50 // Function: BulletDebugNode::show_bounding_boxes
51 // Access: Published
52 // Description:
53 ////////////////////////////////////////////////////////////////////
54 INLINE void BulletDebugNode::
55 show_bounding_boxes(bool show) {
56 
57  _bounds = show;
59 }
60 
61 ////////////////////////////////////////////////////////////////////
62 // Function: BulletDebugNode::show_normals
63 // Access: Published
64 // Description:
65 ////////////////////////////////////////////////////////////////////
66 INLINE void BulletDebugNode::
67 show_normals(bool show) {
68 
69  _drawer._normals = show;
70 }
71 
virtual void draw_mask_changed()
Called after the node's DrawMask has been changed for any reason, this just provides a hook so derive...