open_toontown_panda3d/panda/src/bullet/bulletSphereShape.I

57 lines
1.8 KiB
Plaintext

// Filename: bulletSphereShape.I
// Created by: enn0x (23Jan10)
//
////////////////////////////////////////////////////////////////////
//
// 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: BulletSphereShape::Destructor
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE BulletSphereShape::
~BulletSphereShape() {
delete _shape;
}
////////////////////////////////////////////////////////////////////
// Function: BulletSphereShape::Copy Constructor
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE BulletSphereShape::
BulletSphereShape(const BulletSphereShape &copy) :
_shape(copy._shape) {
}
////////////////////////////////////////////////////////////////////
// Function: BulletSphereShape::Copy Assignment Operator
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE void BulletSphereShape::
operator = (const BulletSphereShape &copy) {
_shape = copy._shape;
}
////////////////////////////////////////////////////////////////////
// Function: BulletSphereShape::get_radius
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE PN_stdfloat BulletSphereShape::
get_radius() const {
return _shape->getRadius();
}