physxControllerDesc.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Filename: physxControllerDesc.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 PHYSXCONTROLLERDESC_H
  15. #define PHYSXCONTROLLERDESC_H
  16. #include "pandabase.h"
  17. #include "lpoint3.h"
  18. #include "physx_includes.h"
  19. ////////////////////////////////////////////////////////////////////
  20. // Class : PhysxControllerDesc
  21. // Description : Descriptor class for a character controller.
  22. ////////////////////////////////////////////////////////////////////
  23. class EXPCL_PANDAPHYSX PhysxControllerDesc {
  24. PUBLISHED:
  25. virtual void set_to_default() = 0;
  26. virtual bool is_valid() const = 0;
  27. void set_pos(const LPoint3f &pos);
  28. void set_slope_limit(float slopeLimit);
  29. void set_skin_width(float skinWidth);
  30. void set_step_offset(float setpOffset);
  31. void set_interaction_flag(bool interactionFlag);
  32. LPoint3f get_pos() const;
  33. float get_slope_limit() const;
  34. float get_skin_width() const;
  35. float get_step_offset() const;
  36. bool get_interaction_flag() const;
  37. public:
  38. virtual NxControllerDesc *ptr() const = 0;
  39. protected:
  40. INLINE PhysxControllerDesc();
  41. };
  42. #include "physxControllerDesc.I"
  43. #endif // PHYSXCONTROLLERDESC_H