Panda3D
bulletTriangleMeshShape.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 bulletTriangleMeshShape.I
10  * @author enn0x
11  * @date 2010-02-09
12  */
13 
14 /**
15  *
16  */
17 INLINE BulletTriangleMeshShape::
18 ~BulletTriangleMeshShape() {
19 
20  if (_bvh_shape) {
21  delete _bvh_shape;
22  }
23 
24  if (_gimpact_shape) {
25  delete _gimpact_shape;
26  }
27 }
28 
29 /**
30  *
31  */
32 INLINE bool BulletTriangleMeshShape::
33 is_static() const {
34 
35  return (_bvh_shape != nullptr);
36 }
37 
38 /**
39  *
40  */
41 INLINE bool BulletTriangleMeshShape::
42 is_dynamic() const {
43 
44  return (_gimpact_shape != nullptr);
45 }