open_toontown_panda3d/panda/src/bullet/bulletTriangleMeshShape.I

54 lines
1.5 KiB
Plaintext

// Filename: bulletTriangleMeshShape.I
// Created by: enn0x (09Feb10)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: BulletTriangleMeshShape::Destructor
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE BulletTriangleMeshShape::
~BulletTriangleMeshShape() {
if (_bvh_shape) {
delete _bvh_shape;
}
if (_gimpact_shape) {
delete _gimpact_shape;
}
}
////////////////////////////////////////////////////////////////////
// Function: BulletTriangleMeshShape::is_static
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE bool BulletTriangleMeshShape::
is_static() const {
return (_bvh_shape != NULL);
}
////////////////////////////////////////////////////////////////////
// Function: BulletTriangleMeshShape::is_dynamic
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE bool BulletTriangleMeshShape::
is_dynamic() const {
return (_gimpact_shape != NULL);
}