physxCapsuleControllerDesc.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Filename: physxCapsuleControllerDesc.h
  2. // Created by: enn0x (22Sep09)
  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. #ifndef PHYSXCAPSULECONTROLLERDESC_H
  15. #define PHYSXCAPSULECONTROLLERDESC_H
  16. #include "pandabase.h"
  17. #include "physxControllerDesc.h"
  18. #include "physx_includes.h"
  19. ////////////////////////////////////////////////////////////////////
  20. // Class : PhysxCapsuleControllerDesc
  21. // Description : Descriptor class for PhysxCapsuleController.
  22. ////////////////////////////////////////////////////////////////////
  23. class EXPCL_PANDAPHYSX PhysxCapsuleControllerDesc : public PhysxControllerDesc {
  24. PUBLISHED:
  25. INLINE PhysxCapsuleControllerDesc();
  26. INLINE ~PhysxCapsuleControllerDesc();
  27. INLINE void set_to_default();
  28. INLINE bool is_valid() const;
  29. void set_radius(float radius);
  30. void set_height(float height);
  31. float get_radius() const;
  32. float get_height() const;
  33. public:
  34. NxControllerDesc *ptr() const { return (NxControllerDesc *)&_desc; };
  35. NxCapsuleControllerDesc _desc;
  36. };
  37. #include "physxCapsuleControllerDesc.I"
  38. #endif // PHYSXCAPSULECONTROLLERDESC_H