physxSphereShapeDesc.I 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Filename: physxSphereShapeDesc.I
  2. // Created by: pratt (Apr 7, 2006)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. ////////////////////////////////////////////////////////////////////
  15. // Function : is_valid
  16. // Access : Published
  17. // Description :
  18. ////////////////////////////////////////////////////////////////////
  19. INLINE bool PhysxSphereShapeDesc::
  20. is_valid() const {
  21. return nSphereShapeDesc.isValid();
  22. }
  23. ////////////////////////////////////////////////////////////////////
  24. // Function : set_to_default
  25. // Access : Published
  26. // Description :
  27. ////////////////////////////////////////////////////////////////////
  28. INLINE void PhysxSphereShapeDesc::
  29. set_to_default() {
  30. nSphereShapeDesc.setToDefault();
  31. }
  32. ////////////////////////////////////////////////////////////////////
  33. // Function : get_radius
  34. // Access : Published
  35. // Description :
  36. ////////////////////////////////////////////////////////////////////
  37. INLINE float PhysxSphereShapeDesc::
  38. get_radius() const {
  39. return nSphereShapeDesc.radius;
  40. }
  41. ////////////////////////////////////////////////////////////////////
  42. // Function : set_radius
  43. // Access : Published
  44. // Description :
  45. ////////////////////////////////////////////////////////////////////
  46. INLINE void PhysxSphereShapeDesc::
  47. set_radius(float value) {
  48. nSphereShapeDesc.radius = value;
  49. }