Panda3D
bulletShape.I
1 // Filename: bulletShape.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: BulletShape::Destructor
17 // Access: Published
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE BulletShape::
21 ~BulletShape() {
22 
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: BulletShape::is_polyhedral
27 // Access: Public
28 // Description:
29 ////////////////////////////////////////////////////////////////////
30 INLINE bool BulletShape::
31 is_polyhedral() const {
32 
33  return ptr()->isPolyhedral();
34 }
35 
36 ////////////////////////////////////////////////////////////////////
37 // Function: BulletShape::is_convex
38 // Access: Public
39 // Description:
40 ////////////////////////////////////////////////////////////////////
41 INLINE bool BulletShape::
42 is_convex() const {
43 
44  return ptr()->isConvex();
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: BulletShape::is_convex_2d
49 // Access: Public
50 // Description:
51 ////////////////////////////////////////////////////////////////////
52 INLINE bool BulletShape::
53 is_convex_2d() const {
54 
55  return ptr()->isConvex2d();
56 }
57 
58 ////////////////////////////////////////////////////////////////////
59 // Function: BulletShape::is_concave
60 // Access: Public
61 // Description:
62 ////////////////////////////////////////////////////////////////////
63 INLINE bool BulletShape::
64 is_concave() const {
65 
66  return ptr()->isConcave();
67 }
68 
69 ////////////////////////////////////////////////////////////////////
70 // Function: BulletShape::is_infinite
71 // Access: Public
72 // Description:
73 ////////////////////////////////////////////////////////////////////
74 INLINE bool BulletShape::
75 is_infinite() const {
76 
77  return ptr()->isInfinite();
78 }
79 
80 ////////////////////////////////////////////////////////////////////
81 // Function: BulletShape::is_non_moving
82 // Access: Public
83 // Description:
84 ////////////////////////////////////////////////////////////////////
85 INLINE bool BulletShape::
86 is_non_moving() const {
87 
88  return ptr()->isNonMoving();
89 }
90 
91 ////////////////////////////////////////////////////////////////////
92 // Function: BulletShape::is_soft_body
93 // Access: Public
94 // Description:
95 ////////////////////////////////////////////////////////////////////
96 INLINE bool BulletShape::
97 is_soft_body() const {
98 
99  return ptr()->isSoftBody();
100 }
101