55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
// Filename: physxSphereShapeDesc.I
|
|
// Created by: pratt (Apr 7, 2006)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 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 : is_valid
|
|
// Access : Published
|
|
// Description :
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE bool PhysxSphereShapeDesc::
|
|
is_valid() const {
|
|
return nSphereShapeDesc.isValid();
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_to_default
|
|
// Access : Published
|
|
// Description :
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void PhysxSphereShapeDesc::
|
|
set_to_default() {
|
|
nSphereShapeDesc.setToDefault();
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_radius
|
|
// Access : Published
|
|
// Description :
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float PhysxSphereShapeDesc::
|
|
get_radius() const {
|
|
return nSphereShapeDesc.radius;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_radius
|
|
// Access : Published
|
|
// Description :
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void PhysxSphereShapeDesc::
|
|
set_radius(float value) {
|
|
nSphereShapeDesc.radius = value;
|
|
}
|
|
|