Panda3D

physxControllerDesc.h

00001 // Filename: physxControllerDesc.h
00002 // Created by:  enn0x (22Sep09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef PHYSXCONTROLLERDESC_H
00016 #define PHYSXCONTROLLERDESC_H
00017 
00018 #include "pandabase.h"
00019 #include "luse.h"
00020 
00021 #include "physx_includes.h"
00022 
00023 ////////////////////////////////////////////////////////////////////
00024 //       Class : PhysxControllerDesc
00025 // Description : Descriptor class for a character controller.
00026 ////////////////////////////////////////////////////////////////////
00027 class EXPCL_PANDAPHYSX PhysxControllerDesc {
00028 
00029 PUBLISHED:
00030   virtual void set_to_default() = 0;
00031   virtual bool is_valid() const = 0;
00032 
00033   void set_pos(const LPoint3f &pos);
00034   void set_slope_limit(float slopeLimit);
00035   void set_skin_width(float skinWidth);
00036   void set_step_offset(float setpOffset);
00037   void set_interaction_flag(bool interactionFlag);
00038 
00039   LPoint3f get_pos() const;
00040   float get_slope_limit() const;
00041   float get_skin_width() const;
00042   float get_step_offset() const;
00043   bool get_interaction_flag() const;
00044 
00045 public:
00046   virtual NxControllerDesc *ptr() const = 0;
00047 
00048 protected:
00049   INLINE PhysxControllerDesc();
00050 };
00051 
00052 #include "physxControllerDesc.I"
00053 
00054 #endif // PHYSXCONTROLLERDESC_H
 All Classes Functions Variables Enumerations