| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- // 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;
- }
|